From d16cfc4b736ef15df6b9c8fb8a712fba939e5baf Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 9 Feb 2023 22:33:37 +0100 Subject: [PATCH] feat: use programs.neovim.defaultEditor --- modules/neovim.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/neovim.nix b/modules/neovim.nix index 37362be..419b8ae 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -1,13 +1,9 @@ { config, pkgs, machine, ... }: { - home.sessionVariables = { - EDITOR = "nvim"; - SUDO_EDITOR = "nvim"; - }; - programs.neovim = { enable = true; + defaultEditor = true; viAlias = true; vimAlias = true;