summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-07 15:06:03 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-07 17:26:26 +0200
commitd348c9693d182780a76eab98d67ae0c08e154090 (patch)
tree2587ab0b08b68799a4dd2435b962d3d6d2072e0c /.config
parentb0999bdebcec558ae85900219b699d716d63f3f6 (diff)
downloaddotfiles-d348c9693d182780a76eab98d67ae0c08e154090.tar.gz
dotfiles-d348c9693d182780a76eab98d67ae0c08e154090.zip
fix(nvim): remap broken gitgutter mappings
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/plugin/50-git.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/plugin/50-git.lua b/.config/nvim/plugin/50-git.lua
index 77ee0c6..513074f 100644
--- a/.config/nvim/plugin/50-git.lua
+++ b/.config/nvim/plugin/50-git.lua
@@ -71,3 +71,7 @@ local git_blame_toggle = (function()
end)()
vim.api.nvim_create_user_command("GitBlame", git_blame_toggle, { desc = "Open/enter git blame window" })
+
+-- The original mappings from the plugin are broken
+vim.keymap.set("n", "]c", "<Cmd>GitGutterNextHunk<CR>", { desc = "Next git hunk" })
+vim.keymap.set("n", "[c", "<Cmd>GitGutterPreviousHunk<CR>", { desc = "Next git hunk" })