diff options
Diffstat (limited to 'lua/lspconfig/cmake.lua')
| -rwxr-xr-x | lua/lspconfig/cmake.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/lspconfig/cmake.lua b/lua/lspconfig/cmake.lua new file mode 100755 index 00000000..9dbcf717 --- /dev/null +++ b/lua/lspconfig/cmake.lua @@ -0,0 +1,25 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.cmake = { + default_config = { + cmd = {"cmake-language-server"}; + filetypes = {"cmake"}; + root_dir = util.root_pattern(".git", "compile_commands.json", "build"); + init_options = { + buildDirectory = "build", + } + }; + docs = { + description = [[ +https://github.com/regen100/cmake-language-server + +CMake LSP Implementation +]]; + default_config = { + root_dir = [[root_pattern(".git", "compile_commands.json", "build")]]; + }; + }; +}; + +-- vim:et ts=2 sw=2 |
