Configure cmake lsp
This commit is contained in:
parent
8d6d4b5c73
commit
f9795280f5
@ -5,6 +5,7 @@ local utils = require('utils')
|
|||||||
nvim_lsp.ccls.setup {}
|
nvim_lsp.ccls.setup {}
|
||||||
nvim_lsp.pyright.setup{}
|
nvim_lsp.pyright.setup{}
|
||||||
nvim_lsp.clangd.setup{}
|
nvim_lsp.clangd.setup{}
|
||||||
|
nvim_lsp.cmake.setup{}
|
||||||
|
|
||||||
|
|
||||||
-- Add additional capabilities supported by nvim-cmp
|
-- Add additional capabilities supported by nvim-cmp
|
||||||
@ -73,7 +74,7 @@ local on_attach = function(client, bufnr)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
||||||
local servers = { 'clangd', 'pyright', 'rust_analyzer', 'tsserver' }
|
local servers = { 'clangd', 'pyright', 'cmake', 'tsserver' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user