From 28838b4cf8f2e104ea7ebbf0ab78acd1a6715b9c Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Tue, 30 Jan 2024 11:21:34 -0800 Subject: feat(swift_mesonls): add meson.options as a root marker (#2991) This is the preferred filename for defining options for a few versions. meson_options.txt is legacy, but will continue to stick around. --- lua/lspconfig/server_configurations/swift_mesonls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/swift_mesonls.lua b/lua/lspconfig/server_configurations/swift_mesonls.lua index 6df13f96..5197f73a 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', '.git'), + root_dir = util.root_pattern('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", ".git")]], + root_dir = [[util.root_pattern("meson_options.txt", "meson.options", ".git")]], }, }, } -- cgit v1.3