diff options
Diffstat (limited to 'lua/lspconfig/configs/neocmake.lua')
| -rw-r--r-- | lua/lspconfig/configs/neocmake.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lua/lspconfig/configs/neocmake.lua b/lua/lspconfig/configs/neocmake.lua index 03b1c528..958bb214 100644 --- a/lua/lspconfig/configs/neocmake.lua +++ b/lua/lspconfig/configs/neocmake.lua @@ -1,12 +1,11 @@ local util = require 'lspconfig.util' -local root_files = { '.git', 'build', 'cmake' } return { default_config = { cmd = { 'neocmakelsp', '--stdio' }, filetypes = { 'cmake' }, root_dir = function(fname) - return util.root_pattern(unpack(root_files))(fname) + return util.root_pattern(unpack({ '.git', 'build', 'cmake' }))(fname) end, single_file_support = true, }, @@ -28,8 +27,5 @@ require'lspconfig'.neocmake.setup { } ``` ]], - default_config = { - root_dir = [[root_pattern('.git', 'cmake')]], - }, }, } |
