mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 09:18:35 +02:00
feat: set nvim as default editor
This commit is contained in:
@@ -111,6 +111,7 @@
|
|||||||
# modern vim
|
# modern vim
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true; # set nvim as default editor
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set number relativenumber
|
set number relativenumber
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ in rec {
|
|||||||
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
||||||
|
|
||||||
# set default applications
|
# set default applications
|
||||||
EDITOR = "vim"; # this variable not work, need to set environment.variables.EDITOR instead.
|
|
||||||
BROWSER = "firefox";
|
BROWSER = "firefox";
|
||||||
TERMINAL = "alacritty";
|
TERMINAL = "alacritty";
|
||||||
|
|
||||||
|
|||||||
@@ -157,6 +157,7 @@
|
|||||||
minicom
|
minicom
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# replace default editor with vim
|
||||||
environment.variables.EDITOR = "vim";
|
environment.variables.EDITOR = "vim";
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
|
|||||||
Reference in New Issue
Block a user