aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/cmake.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-24 09:27:23 -0700
committerGitHub <noreply@github.com>2024-10-24 09:27:23 -0700
commite61da1eae59d9f4c6cdb076bdb73e7572f49c069 (patch)
treec880556de9a9969b645226fe1250a0d40c868a05 /lua/lspconfig/configs/cmake.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar.gz
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar.bz2
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar.lz
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar.xz
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.tar.zst
nvim-lspconfig-e61da1eae59d9f4c6cdb076bdb73e7572f49c069.zip
refactor(docs): drop redundant default_config #3397
Problem: default_config duplicated in `docs` items. Solution: delete it. docgen autogenerates this now.
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')]],
- },
},
}