mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
transfer
This commit is contained in:
parent
02c996d21a
commit
28622332a3
83 changed files with 6969 additions and 57 deletions
50
home/nvim.nix
Normal file
50
home/nvim.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue