1
Fork 0

nvim: Switch to clangd and use libcxx to support c++23 headers

For some fucking unknown reason the clang-tools package doesn't build
with libcxx by default and thus doesn't have the print header from C++23
which I need. I also don't know if they're fucking using the gcc13 c++
stdlib because the gcc14 one FUCKING HAS THE HEADER. I lost hours of
life which I am never going to get back to this fucking bullshit.
This commit is contained in:
caem 2024-12-10 14:39:49 +01:00
parent e77916ed2c
commit b5d3970e71
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
return function () return function ()
require"lspconfig".ccls.setup { require"lspconfig".clangd.setup {
capabilities = require"cmp_nvim_lsp".default_capabilities() capabilities = require"cmp_nvim_lsp".default_capabilities()
} }
end end

View file

@ -18,10 +18,12 @@
lua-language-server lua-language-server
nodePackages.intelephense nodePackages.intelephense
nodePackages.typescript-language-server nodePackages.typescript-language-server
ccls (llvmPackages_19.clang-tools.override {
enableLibcxx = true;
})
ripgrep ripgrep
nil nil
gcc gcc14
basedpyright basedpyright
rust-analyzer rust-analyzer
zathura zathura