From 20f51c8691d630ab52360a37976de6ac6b061ead Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Thu, 4 Jun 2020 11:04:46 +0300 Subject: Add CMake language server --- lua/nvim_lsp/cmake.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 lua/nvim_lsp/cmake.lua (limited to 'lua') 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 -- cgit v1.2.3-70-g09d2