This commit is contained in:
Harivansh Rathi 2026-03-12 19:06:07 -04:00
parent 02c996d21a
commit 28622332a3
83 changed files with 6969 additions and 57 deletions

50
home/nvim.nix Normal file
View file

@ -0,0 +1,50 @@
{
lib,
pkgs,
...
}: let
nvimConfig = lib.cleanSourceWith {
src = ../config/nvim;
filter = path: type: builtins.baseNameOf path != ".git";
};
python = pkgs.writeShellScriptBin "python" ''
exec ${pkgs.python3}/bin/python3 "$@"
'';
in {
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
withNodeJs = true;
extraPackages = with pkgs; [
bat
clang-tools
fd
fzf
gh
git
go_1_26
gopls
lua-language-server
pyright
python
python3
ripgrep
rust-analyzer
rustup
stylua
vscode-langservers-extracted
nodePackages.bash-language-server
nodePackages.typescript
nodePackages.typescript-language-server
];
};
xdg.configFile."nvim" = {
source = nvimConfig;
recursive = true;
};
}