mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
neovim: use home.shellAliases
Instead of manually adding it as an alias for each and every individual shell, which inevitably ends up missing some.
This commit is contained in:
parent
1786e2afdb
commit
2cf3abce03
1 changed files with 2 additions and 4 deletions
|
@ -414,6 +414,8 @@ in {
|
|||
|
||||
home.sessionVariables = mkIf cfg.defaultEditor { EDITOR = "nvim"; };
|
||||
|
||||
home.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
|
||||
|
||||
xdg.configFile =
|
||||
let hasLuaConfig = hasAttr "lua" config.programs.neovim.generatedConfigs;
|
||||
in mkMerge (
|
||||
|
@ -443,9 +445,5 @@ in {
|
|||
+ extraMakeWrapperLuaArgs;
|
||||
wrapRc = false;
|
||||
});
|
||||
|
||||
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