neovim: add vimdiffAlias

This commit is contained in:
Jonathan Ringer 2020-02-26 16:52:04 -08:00 committed by Robert Helgesson
parent 5b7b9821e0
commit 09abc29b73
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -55,6 +55,14 @@ in
''; '';
}; };
vimdiffAlias = mkOption {
type = types.bool;
default = false;
description = ''
Alias `vimdiff` to `nvim -d`.
'';
};
withNodeJs = mkOption { withNodeJs = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
@ -203,5 +211,9 @@ in
configure = cfg.configure // moduleConfigure; configure = cfg.configure // moduleConfigure;
}; };
programs.bash.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
programs.fish.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
programs.zsh.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
}; };
} }