mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
nixos/neovim: Respect option defaultEditor
This commit is contained in:
parent
850251213a
commit
6c0804f1b0
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ in {
|
|||
environment.systemPackages = [
|
||||
cfg.finalPackage
|
||||
];
|
||||
environment.variables = { EDITOR = mkOverride 900 "nvim"; };
|
||||
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
|
||||
|
||||
programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
|
||||
inherit (cfg) viAlias vimAlias;
|
||||
|
|
Loading…
Reference in a new issue