home: enable neovim and helix

This commit is contained in:
Guanran Wang 2023-10-07 12:11:28 +08:00
parent 760327c7ea
commit 9f9e060584
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 27 additions and 5 deletions

View file

@ -41,10 +41,6 @@
"unsetproxy" = "set -e http_proxy https_proxy all_proxy"; # fish syntax (?)
};
sessionVariables = {
# editor
"EDITOR" = "nvim";
"VISUAL" = "nvim";
# misc
"MANPAGER" = "sh -c 'col -bx | bat -l man -p'"; # man: use bat as man's pager
"MANROFFOPT" = "-c"; # man: fix formatting issue with bat
@ -144,6 +140,8 @@
};
};
# Editors
### VSCode
vscode = {
enable = true;
package = pkgs.vscodium; # foss
@ -198,5 +196,30 @@
#catppuccin.catppuccin-vsc
];
};
### Neovim
neovim = {
enable = true;
#defaultEditor = true;
viAlias = true;
vimAlias = true;
};
### Helix
helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
file-picker = {
hidden = false;
};
};
};
};
};
}

View file

@ -30,7 +30,6 @@
packages = with pkgs; [
#fastfetch
neovim
prismlauncher
keka # un-archive-r