summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-04-18 06:55:13 +0200
committerAlan Pearce2023-04-18 06:55:13 +0200
commit78e41e44e8363fdb60b983c3d668e1558613b791 (patch)
tree7371d370a9ee3cba039af957c250d9cd4c4e2835 /user
parent70d6a686739c902880c3a45f6979ad469a3b75f5 (diff)
downloadnixfiles-78e41e44e8363fdb60b983c3d668e1558613b791.tar.lz
nixfiles-78e41e44e8363fdb60b983c3d668e1558613b791.tar.zst
nixfiles-78e41e44e8363fdb60b983c3d668e1558613b791.zip
use neovim as $EDITOR
Diffstat (limited to 'user')
-rw-r--r--user/settings/emacs.nix3
-rw-r--r--user/settings/neovim.nix1
2 files changed, 1 insertions, 3 deletions
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;