fix(mesonlsp): update root directory pattern (#3265)

Add pattern for meson.build files in the 'root_pattern' functions
of the 'default_config' and 'doc' tables for the 'mesonlsp'
and 'swift_mesonls' servers.

Signed-off-by: George Thomadakis <gthomadakis@protonmail.com>
This commit is contained in:
George Thomadakis 2024-08-10 09:12:20 +03:00 committed by GitHub
parent 652386deae
commit 94f0fca315
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'mesonlsp', '--lsp' },
filetypes = { 'meson' },
root_dir = util.root_pattern('meson_options.txt', 'meson.options', '.git'),
root_dir = util.root_pattern('meson.build', 'meson_options.txt', 'meson.options', '.git'),
},
docs = {
description = [[
@ -13,7 +13,7 @@ https://github.com/JCWasmx86/mesonlsp
An unofficial, unendorsed language server for meson written in C++
]],
default_config = {
root_dir = [[util.root_pattern("meson_options.txt", "meson.options", ".git")]],
root_dir = [[util.root_pattern("meson.build", "meson_options.txt", "meson.options", ".git")]],
},
},
}

View file

@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'Swift-MesonLSP', '--lsp' },
filetypes = { 'meson' },
root_dir = util.root_pattern('meson_options.txt', 'meson.options', '.git'),
root_dir = util.root_pattern('meson.build', 'meson_options.txt', 'meson.options', '.git'),
},
docs = {
description = [[
@ -13,7 +13,7 @@ https://github.com/JCWasmx86/Swift-MesonLSP
Meson language server written in Swift
]],
default_config = {
root_dir = [[util.root_pattern("meson_options.txt", "meson.options", ".git")]],
root_dir = [[util.root_pattern("meson.build", "meson_options.txt", "meson.options", ".git")]],
},
},
}