Skip to content

Commit bb7f20b

Browse files
committed
neovim: always use neovim from flake input
1 parent 254b254 commit bb7f20b

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

home/neovim.nix

+8-22
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
{ pkgs, ... }:
22

33
let
4-
nv = pkgs.writeShellScriptBin "nv" ''
5-
if [ -d ~/nvim ]; then
6-
exec nix run ~/nvim -- "$@"
7-
else
8-
exec nvim "$@"
9-
fi
10-
'';
4+
neovim = pkgs.mkNeovim {
5+
modules = pkgs.mkNeovim.modules.all;
6+
};
117
in
12-
138
{
149
programs.git.extraConfig.core.editor = "nvim";
1510

1611
home = {
17-
packages = [
18-
(pkgs.mkNeovim {
19-
modules = with pkgs.mkNeovim.modules; [
20-
core
21-
clipboard
22-
copilot
23-
deno
24-
nix
25-
lua
26-
];
27-
})
28-
nv
29-
];
30-
sessionVariables.EDITOR = "nv";
12+
packages = [ neovim ];
13+
shellAliases = {
14+
nv = "nvim";
15+
};
16+
sessionVariables.EDITOR = "nvim";
3117
};
3218
}

0 commit comments

Comments
 (0)