From 1b2dcfc20a2b0dbf5dd69cca2079d21221325d01 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 20 Aug 2026 21:22:45 +0200 Subject: [PATCH] scroll and center Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- home/programs/tui/nvf/keymaps.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/home/programs/tui/nvf/keymaps.nix b/home/programs/tui/nvf/keymaps.nix index 09e62b53..b2d7f24e 100644 --- a/home/programs/tui/nvf/keymaps.nix +++ b/home/programs/tui/nvf/keymaps.nix @@ -207,6 +207,28 @@ desc = "Dedent and keep selection"; } + # Scroll and center + { + key = ""; + mode = [ + "n" + "v" + ]; + silent = true; + action = "zz"; + desc = "Scroll down and center"; + } + { + key = ""; + mode = [ + "n" + "v" + ]; + silent = true; + action = "zz"; + desc = "Scroll up and center"; + } + # Move { key = "";