We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254b254 commit bb7f20bCopy full SHA for bb7f20b
home/neovim.nix
@@ -1,32 +1,18 @@
1
{ pkgs, ... }:
2
3
let
4
- nv = pkgs.writeShellScriptBin "nv" ''
5
- if [ -d ~/nvim ]; then
6
- exec nix run ~/nvim -- "$@"
7
- else
8
- exec nvim "$@"
9
- fi
10
- '';
+ neovim = pkgs.mkNeovim {
+ modules = pkgs.mkNeovim.modules.all;
+ };
11
in
12
-
13
{
14
programs.git.extraConfig.core.editor = "nvim";
15
16
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";
+ packages = [ neovim ];
+ shellAliases = {
+ nv = "nvim";
+ sessionVariables.EDITOR = "nvim";
31
};
32
}
0 commit comments