refactor(editors): standardize on helix, keep neovim as backup (#345)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-02 13:33:17 +08:00
1 parent 1a10e65221
commit 9c44117f75
8 files changed
+26 -29

No files matched your search

+6 -4
View File
@@ -1,11 +1,13 @@
{ pkgs, ... }:
{
# Default editor: Helix (`hx`). Privileged edits (`sudoedit`, …) prefer `nvim --clean`
# via `SUDO_EDITOR`; invoke `nvim --clean` manually for other sensitive workflows.
# Default editor: Helix (`hx`), for interactive and privileged (`sudoedit`) edits alike. This is
# the single source for the editor env; Home Manager does not duplicate it. `SUDO_EDITOR` is
# explicit rather than relying on the `$VISUAL`/`$EDITOR` fallback. Neovim stays installed as a
# backup.
environment.variables = {
EDITOR = "hx";
VISUAL = "hx";
SUDO_EDITOR = "nvim --clean";
SUDO_EDITOR = "hx";
};
environment.systemPackages = with pkgs; [
@@ -13,7 +15,7 @@
nushell # nushell
fastfetch
helix # default $EDITOR (`hx`)
neovim # backup editor; `nvim --clean` for sensitive / privileged edits (`$SUDO_EDITOR`)
neovim # backup editor
gnumake # Makefile
just # a command runner like gnumake, but simpler
git # used by nix flakes