From a0fadd6a11addb1f51bc2142fbd2606ec59dbc79 Mon Sep 17 00:00:00 2001 From: Myles Mo <54089360+emxxjnm@users.noreply.github.com> Date: Mon, 9 Jan 2023 15:03:53 +0800 Subject: [PATCH] fix(editor): gitsigns prev/next hunk keymap (#26) Co-authored-by: Myles Mo --- lua/lazyvim/plugins/editor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 9ba64a06..ba1d8fb5 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -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" }, "ghs", ":Gitsigns stage_hunk", "Stage Hunk") map({ "n", "v" }, "ghr", ":Gitsigns reset_hunk", "Reset Hunk") map("n", "ghS", gs.stage_buffer, "Stage Buffer")