1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

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 {
type = types.bool;
default = false;
@ -203,5 +211,9 @@ in
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"; };
};
}