diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 15:06:03 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-07 17:26:26 +0200 |
| commit | 52084e244f85d84c085c7ee46cf5aae45a29f7df (patch) | |
| tree | bd33acfbada75e2419e93efeacb9114b2c70c644 /plugin/50-git.lua | |
| parent | 6219ff44003259ca45d5760b15e68779f670587f (diff) | |
| download | nvim-config-52084e244f85d84c085c7ee46cf5aae45a29f7df.tar.gz nvim-config-52084e244f85d84c085c7ee46cf5aae45a29f7df.zip | |
fix(nvim): remap broken gitgutter mappings
Diffstat (limited to 'plugin/50-git.lua')
| -rw-r--r-- | plugin/50-git.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/50-git.lua b/plugin/50-git.lua index 77ee0c6..513074f 100644 --- a/plugin/50-git.lua +++ b/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" }) |
