mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
chore(nvim): Use ]c & [c to navigate git hunks
- Keeps it consistent with gitdiff *change* navigation
This commit is contained in:
@@ -53,11 +53,11 @@ return {
|
|||||||
-- Text object
|
-- Text object
|
||||||
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", { desc = "Git: Visual select hunk" })
|
||||||
|
|
||||||
map({ "n", "v" }, "]g", function()
|
map({ "n", "v" }, "]c", function()
|
||||||
gs.next_hunk()
|
gs.next_hunk()
|
||||||
end, { desc = "Next Git hunk" })
|
end, { desc = "Next Git hunk" })
|
||||||
|
|
||||||
map({ "n", "v" }, "[g", function()
|
map({ "n", "v" }, "[c", function()
|
||||||
gs.prev_hunk()
|
gs.prev_hunk()
|
||||||
end, { desc = "Previous Git hunk" })
|
end, { desc = "Previous Git hunk" })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user