File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 53
53
inherit ( cfg ) warnings assertions ;
54
54
home . sessionVariables = mkIf cfg . defaultEditor { EDITOR = "nvim" ; } ;
55
55
}
56
+ {
57
+ programs . bash . shellAliases = mkIf cfg . vimdiffAlias { vimdiff = "nvim -d" ; } ;
58
+ programs . fish . shellAliases = mkIf cfg . vimdiffAlias { vimdiff = "nvim -d" ; } ;
59
+ programs . zsh . shellAliases = mkIf cfg . vimdiffAlias { vimdiff = "nvim -d" ; } ;
60
+ }
56
61
] ) ;
57
62
}
Original file line number Diff line number Diff line change @@ -4,5 +4,13 @@ with lib;
4
4
options = {
5
5
enable = mkEnableOption "nixvim" ;
6
6
defaultEditor = mkEnableOption "nixvim as the default editor" ;
7
+
8
+ vimdiffAlias = mkOption {
9
+ type = types . bool ;
10
+ default = false ;
11
+ description = ''
12
+ Alias `vimdiff` to `nvim -d`.
13
+ '' ;
14
+ } ;
7
15
} ;
8
16
}
You can’t perform that action at this time.
0 commit comments