mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 10:03:56 +01:00
refactor(editors): standardize on helix, keep neovim as backup (#345)
This commit is contained in:
1 parent
1a10e65221
commit
9c44117f75
8 files changed
+26
-29
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user