mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
misc: fix defaultEditor option for HM and NixOS modules
This commit is contained in:
parent
0ea5e205e6
commit
59232f22b5
2 changed files with 5 additions and 2 deletions
|
@ -37,7 +37,8 @@ in {
|
|||
xdg.configFile = files;
|
||||
})
|
||||
{
|
||||
inherit (cfg) warnings assertions defaultEditor;
|
||||
inherit (cfg) warnings assertions;
|
||||
home.sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,9 @@ in {
|
|||
environment.variables."VIM" = "/etc/nvim";
|
||||
})
|
||||
{
|
||||
inherit (cfg) warnings assertions defaultEditor;
|
||||
inherit (cfg) warnings assertions;
|
||||
programs.neovim.defaultEditor = cfg.defaultEditor;
|
||||
environment.variables.EDITOR = mkIf cfg.defaultEditor (lib.mkOverride 900 "nvim");
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue