From 78e41e44e8363fdb60b983c3d668e1558613b791 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 18 Apr 2023 06:55:13 +0200 Subject: use neovim as $EDITOR --- user/settings/emacs.nix | 3 --- user/settings/neovim.nix | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'user') diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 372af9cd..59035f81 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -171,9 +171,6 @@ in home.packages = [ editorScript ]; - home.sessionVariables = { - EDITOR = "${editorScript}/bin/edit"; - }; xdg.configFile."emacs/early-init.el" = { source = ../emacs/early-init.el; onChange = '' diff --git a/user/settings/neovim.nix b/user/settings/neovim.nix index 87398783..22ef8610 100644 --- a/user/settings/neovim.nix +++ b/user/settings/neovim.nix @@ -5,6 +5,7 @@ }: { programs.neovim = { enable = true; + defaultEditor = true; vimAlias = true; vimdiffAlias = true; withNodeJs = true; -- cgit 1.4.1