1
Fork 0
nixos-system-config/modules/packages/nvim.nix
caem b5d3970e71
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.
2024-12-10 14:39:49 +01:00

47 lines
932 B
Nix

{ pkgs, ... }:
{
environment.persistence."/nix/persist".users.hu.directories = [
".local/share/nvim"
".local/state/nvim"
];
environment.variables = {
EDITOR = "nvim";
};
home-manager.users.hu = {
programs.neovim = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
lua-language-server
nodePackages.intelephense
nodePackages.typescript-language-server
(llvmPackages_19.clang-tools.override {
enableLibcxx = true;
})
ripgrep
nil
gcc14
basedpyright
rust-analyzer
zathura
git
texliveFull
luajitPackages.jsregexp
luajitPackages.luarocks
fd
texlab
haskell-language-server
rustc
];
};
home.file."/home/hu/.config/nvim" = {
source = ../../dotfiles/nvim;
recursive = true;
};
};
}