nvim: add clangd specific lsp plugin
This commit is contained in:
parent
5e638c410b
commit
d03d96a9fb
|
@ -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 = {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user