make neovim the default editor

This commit is contained in:
John Bowdre 2024-12-05 08:11:10 -06:00
parent 3e93fe6f19
commit c955e117e8
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo
4 changed files with 9 additions and 5 deletions

View file

@ -25,7 +25,7 @@
stateVersion = lib.mkDefault "23.05"; stateVersion = lib.mkDefault "23.05";
sessionVariables = { sessionVariables = {
EDITOR = "vim"; EDITOR = "nvim";
}; };
}; };

View file

@ -12,6 +12,7 @@
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
defaultEditor = true;
performance = { performance = {
combinePlugins = { combinePlugins = {
@ -24,6 +25,9 @@
byteCompileLua.enable = true; byteCompileLua.enable = true;
}; };
viAlias = true;
vimAlias = true;
luaLoader.enable = true; luaLoader.enable = true;
}; };
} }

View file

@ -10,6 +10,6 @@
tf = "terraform"; tf = "terraform";
tfyolo = "terraform apply -auto-approve"; tfyolo = "terraform apply -auto-approve";
top = "btop"; top = "btop";
v = "vim"; v = "nvim";
vi = "vim";
} }

View file

@ -1,7 +1,7 @@
{ pkgs, lib, ... }: { { pkgs, lib, ... }: {
programs.vim = { programs.vim = {
enable = true; enable = true;
defaultEditor = true; # defaultEditor = true;
settings = { settings = {
background = "dark"; background = "dark";
expandtab = true; expandtab = true;