diff --git a/config/keymaps.nix b/config/keymaps.nix index ec5175e..1b5f11b 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -23,16 +23,6 @@ desc = "Zen mode"; }; } - { - mode = "n"; - action = ""; - key = "zz"; - options = { - silent = true; - noremap = true; - desc = "Scroll down and center"; - }; - } { mode = "n"; action = ":%%s/\\<\\>//gI"; @@ -43,14 +33,23 @@ desc = "Search and replace the word under the cursor globally and case-insensitively"; }; } + # center the screen when scrolling { mode = "n"; - action = ""; - key = "zz"; + key = ""; + action = "zz"; + options = { + silent = true; + noremap = true; + }; + } + { + mode = "n"; + key = ""; + action = "zz"; options = { silent = true; noremap = true; - desc = "Scroll up and center"; }; } { @@ -337,12 +336,21 @@ }; } { - action = ":Neogit"; + action = ":Neogit kind=floating"; key = "gg"; options = { silent = true; noremap = true; - desc = "Open Neogit"; + desc = "Open Neogit in floating window"; + }; + } + { + action = ":Neogit"; + key = "gG"; + options = { + silent = true; + noremap = true; + desc = "Open Neogit in standalone tab"; }; } { diff --git a/config/plugins/qol.nix b/config/plugins/qol.nix index 1ad48c2..53a2e4c 100644 --- a/config/plugins/qol.nix +++ b/config/plugins/qol.nix @@ -82,7 +82,6 @@ enable = true; settings = { graph_style = "unicode"; - popup.kind = "floating"; integrations = { diffview = true; telescope = true;