LSP config of cmake (#455)

Co-authored-by: zhongzedu <duzhongze19s@ict.ac.cn>
This commit is contained in:
wcsjdzz 2021-06-05 03:24:10 +08:00 committed by GitHub
parent ad26d797cc
commit b4446a1a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

5
lua/lsp/cmake-ls.lua Normal file
View file

@ -0,0 +1,5 @@
require'lspconfig'.cmake.setup {
cmd = {DATA_PATH .. '/lspinstall/cmake/venv/bin/cmake-language-server'},
on_attach = require'lsp'.common_on_attach,
filetypes = {"cmake"},
}