(YankyPutIndentAfterShiftRight)", desc = "Put and indent right" },
- { "(YankyPutIndentAfterShiftLeft)", desc = "Put and indent left" },
- { ">P", "(YankyPutIndentBeforeShiftRight)", desc = "Put before and indent right" },
- { "(YankyPutIndentBeforeShiftLeft)", desc = "Put before and indent left" },
- { "=p", "(YankyPutAfterFilter)", desc = "Put after applying a filter" },
- { "=P", "(YankyPutBeforeFilter)", desc = "Put before applying a filter" },
- },
-}
diff --git a/home/base/tui/editors/neovim/nvim/lua/polish.lua b/home/base/tui/editors/neovim/nvim/lua/polish.lua
deleted file mode 100644
index 1acdac90..00000000
--- a/home/base/tui/editors/neovim/nvim/lua/polish.lua
+++ /dev/null
@@ -1,16 +0,0 @@
--- This will run last in the setup process and is a good place to configure
--- things like custom filetypes. This just pure lua so anything that doesn't
--- fit in the normal config locations above can go here
-
--- Set up custom filetypes
--- vim.filetype.add {
--- extension = {
--- foo = "fooscript",
--- },
--- filename = {
--- ["Foofile"] = "fooscript",
--- },
--- pattern = {
--- ["~/%.config/foo/.*"] = "fooscript",
--- },
--- }
diff --git a/home/base/tui/editors/neovim/nvim/neovim.yml b/home/base/tui/editors/neovim/nvim/neovim.yml
deleted file mode 100644
index b9235ab8..00000000
--- a/home/base/tui/editors/neovim/nvim/neovim.yml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-base: lua51
-
-globals:
- vim:
- any: true
diff --git a/home/base/tui/editors/neovim/nvim/selene.toml b/home/base/tui/editors/neovim/nvim/selene.toml
deleted file mode 100644
index e7005c33..00000000
--- a/home/base/tui/editors/neovim/nvim/selene.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-std = "neovim"
-
-[rules]
-global_usage = "allow"
-if_same_then_else = "allow"
-incorrect_standard_library_use = "allow"
-mixed_table = "allow"
-multiple_statements = "allow"
diff --git a/modules/base/packages.nix b/modules/base/packages.nix
index 5c6861db..6e243161 100644
--- a/modules/base/packages.nix
+++ b/modules/base/packages.nix
@@ -1,14 +1,19 @@
{ pkgs, ... }:
{
- # for security reasons, do not load neovim's user config
- # since EDITOR may be used to edit some critical files
- environment.variables.EDITOR = "nvim --clean";
+ # Default editor: Helix (`hx`). Privileged edits (`sudoedit`, …) prefer `nvim --clean`
+ # via `SUDO_EDITOR`; invoke `nvim --clean` manually for other sensitive workflows.
+ environment.variables = {
+ EDITOR = "hx";
+ VISUAL = "hx";
+ SUDO_EDITOR = "nvim --clean";
+ };
environment.systemPackages = with pkgs; [
# core tools
nushell # nushell
fastfetch
- neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
+ helix # default $EDITOR (`hx`)
+ neovim # backup editor; `nvim --clean` for sensitive / privileged edits (`$SUDO_EDITOR`)
gnumake # Makefile
just # a command runner like gnumake, but simpler
git # used by nix flakes