1
Fork 0
nixos-system-config/dotfiles/nvim/lua/plugins/lsp/cxx.lua
caem 9a59dfb308
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.
2024-12-11 14:39:07 +01:00

8 lines
199 B
Lua

return function ()
require"lspconfig".clangd.setup {
capabilities = require"cmp_nvim_lsp".default_capabilities(),
filetypes = {
"cpp", "objc", "objcpp", "cuda", "proto"
}
}
end