mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01: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.sessionVariables = mkIf cfg.defaultEditor { EDITOR = "nvim"; };
|
||||||
|
|
||||||
|
home.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
|
||||||
|
|
||||||
xdg.configFile =
|
xdg.configFile =
|
||||||
let hasLuaConfig = hasAttr "lua" config.programs.neovim.generatedConfigs;
|
let hasLuaConfig = hasAttr "lua" config.programs.neovim.generatedConfigs;
|
||||||
in mkMerge (
|
in mkMerge (
|
||||||
|
@ -443,9 +445,5 @@ in {
|
||||||
+ extraMakeWrapperLuaArgs;
|
+ extraMakeWrapperLuaArgs;
|
||||||
wrapRc = false;
|
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