aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorShatur95 <genaloner@gmail.com>2020-06-04 11:04:46 +0300
committerShatur95 <genaloner@gmail.com>2020-06-04 11:04:46 +0300
commit20f51c8691d630ab52360a37976de6ac6b061ead (patch)
tree0655ef8a015c03b222645f2b83153b14c6a7c89e /lua
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar.gz
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar.bz2
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar.lz
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar.xz
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.tar.zst
nvim-lspconfig-20f51c8691d630ab52360a37976de6ac6b061ead.zip
Add CMake language server
Diffstat (limited to 'lua')
-rwxr-xr-xlua/nvim_lsp/cmake.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/nvim_lsp/cmake.lua b/lua/nvim_lsp/cmake.lua
new file mode 100755
index 00000000..b47d23a2
--- /dev/null
+++ b/lua/nvim_lsp/cmake.lua
@@ -0,0 +1,25 @@
+local configs = require 'nvim_lsp/configs'
+local util = require 'nvim_lsp/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