1
0
Fork 0
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:
Guilhem Saurel 2025-12-11 23:58:21 +01:00 committed by Gaétan Lepage
parent dfc71c3d48
commit 1e0916836a
2 changed files with 5 additions and 1 deletions

View file

@ -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;