diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/mesonlsp.lua | 4 | ||||
| -rw-r--r-- | lua/lspconfig/server_configurations/swift_mesonls.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/lspconfig/server_configurations/mesonlsp.lua b/lua/lspconfig/server_configurations/mesonlsp.lua index 29eaef9b..1e45ef8b 100644 --- a/lua/lspconfig/server_configurations/mesonlsp.lua +++ b/lua/lspconfig/server_configurations/mesonlsp.lua @@ -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")]], }, }, } diff --git a/lua/lspconfig/server_configurations/swift_mesonls.lua b/lua/lspconfig/server_configurations/swift_mesonls.lua index 5197f73a..4692e669 100644 --- a/lua/lspconfig/server_configurations/swift_mesonls.lua +++ b/lua/lspconfig/server_configurations/swift_mesonls.lua @@ -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")]], }, }, } |
