1
0
Fork 0

nvim: add clangd specific lsp plugin

This commit is contained in:
tastytea 2022-08-18 22:38:35 +02:00
parent 5e638c410b
commit d03d96a9fb
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 19 additions and 0 deletions

View File

@ -97,6 +97,24 @@ if vim.fn.executable('clangd') > 0 then
}
end
require("clangd_extensions").setup({
server = {
cmd = {
'clangd',
'--compile-commands-dir=build',
'--clang-tidy', -- needs >=clangd-9
'--ranking-model=decision_forest' -- needs >=clangd-12
},
on_attach = on_attach,
capabilities = capabilities
},
extensions = {
inlay_hints = {
show_parameter_hints = false
}
}
})
if vim.fn.executable('lua-language-server') > 0 then
lspconfig.sumneko_lua.setup({
settings = {

View File

@ -64,6 +64,7 @@ require('packer').startup(function(use)
tag = '*'
}
use { 'https://github.com/ray-x/lsp_signature.nvim' }
use { 'https://github.com/p00f/clangd_extensions.nvim' }
-- tools
use {