feat: set nvim as default editor

This commit is contained in:
ryan4yin
2023-05-14 19:44:57 +08:00
parent 848c6fbca2
commit 79a8e9d293
3 changed files with 2 additions and 1 deletions

View File

@@ -111,6 +111,7 @@
# modern vim
neovim = {
enable = true;
defaultEditor = true; # set nvim as default editor
extraConfig = ''
set number relativenumber
'';

View File

@@ -27,7 +27,6 @@ in rec {
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
# set default applications
EDITOR = "vim"; # this variable not work, need to set environment.variables.EDITOR instead.
BROWSER = "firefox";
TERMINAL = "alacritty";

View File

@@ -157,6 +157,7 @@
minicom
];
# replace default editor with vim
environment.variables.EDITOR = "vim";
# Enable sound with pipewire.