From 6f768539576531860775024f41c4630496f9945c Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 18 Sep 2024 01:21:02 -0700 Subject: [PATCH] fix: correctly map scrolling and revert neogit keymaps --- config/keymaps.nix | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/config/keymaps.nix b/config/keymaps.nix index 1b5f11b..1ce1f35 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -52,6 +52,24 @@ noremap = true; }; } + { + mode = "n"; + key = ""; + action = "zz"; + options = { + silent = true; + noremap = true; + }; + } + { + mode = "n"; + key = ""; + action = "zz"; + options = { + silent = true; + noremap = true; + }; + } { mode = "n"; action = ":CellularAutomaton make_it_rain"; @@ -336,30 +354,21 @@ }; } { - action = ":Neogit kind=floating"; + action = ":Neogit"; key = "gg"; options = { silent = true; noremap = true; - desc = "Open Neogit in floating window"; + desc = "Open Neogit"; }; } { - action = ":Neogit"; - key = "gG"; - options = { - silent = true; - noremap = true; - desc = "Open Neogit in standalone tab"; - }; - } - { - action = ":Neogit commit"; + action = ":Neogit kind=floating commit"; key = "gc"; options = { silent = true; noremap = true; - desc = "Open commit menu"; + desc = "Quickly open Neogit commit menu"; }; } {