nvim: lsp: remove double clangd definition
This commit is contained in:
parent
a3dabb8b7d
commit
4a2fcc93d1
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user