nvim: lsp: remove double clangd definition

This commit is contained in:
tastytea 2022-08-21 18:06:45 +02:00
parent a3dabb8b7d
commit 4a2fcc93d1
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -84,36 +84,26 @@ vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(
-- setup servers
local lspconfig = require('lspconfig')
if vim.fn.executable('clangd') > 0 then
lspconfig.clangd.setup {
cmd = {
'clangd',
'--compile-commands-dir=build',
'--clang-tidy', -- needs >=clangd-9
'--ranking-model=decision_forest' -- needs >=clangd-12
},
on_attach = on_attach,
capabilities = capabilities
}
end
require("clangd_extensions").setup({
server = {
cmd = {
'clangd',
'--compile-commands-dir=build',
'--clang-tidy', -- needs >=clangd-9
'--ranking-model=decision_forest' -- needs >=clangd-12
if vim.fn.executable('clangd') > 0 then
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
},
on_attach = on_attach,
capabilities = capabilities
},
extensions = {
inlay_hints = {
show_parameter_hints = false
extensions = {
inlay_hints = {
show_parameter_hints = false
}
}
}
})
})
end
if vim.fn.executable('lua-language-server') > 0 then
lspconfig.sumneko_lua.setup({