mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-09 18:44:14 +00:00
Merge 6346c61b0c
into 94605dcade
This commit is contained in:
commit
83bc4981c7
2 changed files with 8 additions and 2 deletions
|
@ -419,7 +419,10 @@ in {
|
|||
|
||||
home.packages = [ cfg.finalPackage ];
|
||||
|
||||
home.sessionVariables = mkIf cfg.defaultEditor { EDITOR = "nvim"; };
|
||||
home.sessionVariables = mkIf cfg.defaultEditor {
|
||||
EDITOR = getBin
|
||||
(pkgs.writeShellScript "editor" "exec ${getBin cfg.package}/bin/nvim");
|
||||
};
|
||||
|
||||
home.shellAliases = mkIf cfg.vimdiffAlias { vimdiff = "nvim -d"; };
|
||||
|
||||
|
|
|
@ -174,7 +174,10 @@ in {
|
|||
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
home.sessionVariables = mkIf cfg.defaultEditor { EDITOR = "vim"; };
|
||||
home.sessionVariables = mkIf cfg.defaultEditor {
|
||||
EDITOR = getBin
|
||||
(pkgs.writeShellScript "editor" "exec ${getBin cfg.package}/bin/vim");
|
||||
};
|
||||
|
||||
programs.vim = {
|
||||
package = vim;
|
||||
|
|
Loading…
Add table
Reference in a new issue