mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
neovim: add vimdiffAlias
This commit is contained in:
parent
5b7b9821e0
commit
09abc29b73
1 changed files with 12 additions and 0 deletions
|
@ -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"; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue