mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-17 14:31:11 +01:00
defaultEditor also sets {env}VISUAL
same as https://github.com/nix-community/home-manager/pull/8322
This commit is contained in:
parent
dfc71c3d48
commit
1e0916836a
2 changed files with 5 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ in
|
|||
environment.variables = {
|
||||
VIM = mkIf (!cfg.wrapRc) "/etc/nvim";
|
||||
EDITOR = mkIf cfg.defaultEditor (lib.mkOverride 900 "nvim");
|
||||
VISUAL = mkIf cfg.defaultEditor (lib.mkOverride 900 "nvim");
|
||||
};
|
||||
|
||||
programs.neovim.defaultEditor = cfg.defaultEditor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue