mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
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:
parent
652386deae
commit
94f0fca315
2 changed files with 4 additions and 4 deletions
|
@ -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")]],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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")]],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue