aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorGeorge Thomadakis <gthomadakis@protonmail.com>2024-08-10 09:12:20 +0300
committerGitHub <noreply@github.com>2024-08-10 14:12:20 +0800
commit94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c (patch)
tree32f94776d67df754b770bade29b5b5d73bf5319a /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar.gz
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar.bz2
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar.lz
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar.xz
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.tar.zst
nvim-lspconfig-94f0fca3153cd2adfacfd9f2e5f4ef0c0122545c.zip
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>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/mesonlsp.lua4
-rw-r--r--lua/lspconfig/server_configurations/swift_mesonls.lua4
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")]],
},
},
}