nvim: Add support for clangd for C++ and ccls for C
clangd doesn't work the way I want it to with C. ccls doesn't work the way I want it to with C++. So now I use both for each ones they work well with.
This commit is contained in:
parent
b5d3970e71
commit
9a59dfb308
4 changed files with 51 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
return function ()
|
||||
require"lspconfig".clangd.setup {
|
||||
capabilities = require"cmp_nvim_lsp".default_capabilities()
|
||||
require"lspconfig".ccls.setup {
|
||||
capabilities = require"cmp_nvim_lsp".default_capabilities(),
|
||||
filetypes = {
|
||||
"c"
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue