mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 17:01:01 +00:00
50 lines
915 B
Nix
50 lines
915 B
Nix
{
|
|
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;
|
|
};
|
|
}
|