aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/cmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/configs/cmake.lua')
-rw-r--r--lua/lspconfig/configs/cmake.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lua/lspconfig/configs/cmake.lua b/lua/lspconfig/configs/cmake.lua
index 7f27fea0..514a29f2 100644
--- a/lua/lspconfig/configs/cmake.lua
+++ b/lua/lspconfig/configs/cmake.lua
@@ -1,12 +1,11 @@
local util = require 'lspconfig.util'
-local root_files = { 'CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake' }
return {
default_config = {
cmd = { 'cmake-language-server' },
filetypes = { 'cmake' },
root_dir = function(fname)
- return util.root_pattern(unpack(root_files))(fname)
+ return util.root_pattern('CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake')(fname)
end,
single_file_support = true,
init_options = {
@@ -19,8 +18,5 @@ https://github.com/regen100/cmake-language-server
CMake LSP Implementation
]],
- default_config = {
- root_dir = [[root_pattern('CMakePresets.json', 'CTestConfig.cmake', '.git', 'build', 'cmake')]],
- },
},
}