From ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sun, 6 Sep 2020 17:49:21 +0900 Subject: Rename nvim_lsp to lspconfig --- lua/lspconfig/cmake.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 lua/lspconfig/cmake.lua (limited to 'lua/lspconfig/cmake.lua') 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 -- cgit v1.2.3-70-g09d2