fix(editor): gitsigns prev/next hunk keymap (#26)

Co-authored-by: Myles Mo <mylesmo.ash@gmail.com>
This commit is contained in:
Myles Mo 2023-01-09 15:03:53 +08:00 committed by GitHub
parent f7475ab7aa
commit a0fadd6a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,8 +180,8 @@ return {
end
-- stylua: ignore start
map("n", "]h", gs.prev_hunk, "Next Hunk")
map("n", "[h", gs.next_hunk, "Prev Hunk")
map("n", "]h", gs.next_hunk, "Next Hunk")
map("n", "[h", gs.prev_hunk, "Prev Hunk")
map({ "n", "v" }, "<leader>ghs", ":Gitsigns stage_hunk<CR>", "Stage Hunk")
map({ "n", "v" }, "<leader>ghr", ":Gitsigns reset_hunk<CR>", "Reset Hunk")
map("n", "<leader>ghS", gs.stage_buffer, "Stage Buffer")