From fdab14f6dcc0a7ff1629952934932ecc700ddd3e Mon Sep 17 00:00:00 2001 From: leafee98 Date: Fri, 15 Dec 2023 12:53:14 +0800 Subject: [PATCH] map gitsign next/prev to h{np}, preview as hv --- lua/plugins/20-git.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/plugins/20-git.lua b/lua/plugins/20-git.lua index 4bb907b..b35ff98 100644 --- a/lua/plugins/20-git.lua +++ b/lua/plugins/20-git.lua @@ -12,13 +12,13 @@ return { vim.keymap.set(mode, l, r, opts) end - m("n", "hj", function() + m("n", "hn", function() if vim.wo.diff then return "]c" end vim.schedule(function() gs.next_hunk() end) return "" end, {expr=true}) - m("n", "hk", function() + m("n", "hp", function() if vim.wo.diff then return "[c" end vim.schedule(function() gs.prev_hunk() end) return "" @@ -31,7 +31,7 @@ return { m("n", "hS", gs.stage_buffer) m("n", "hu", gs.undo_stage_hunk) m("n", "hR", gs.reset_buffer) - m("n", "hp", gs.preview_hunk) + m("n", "hv", gs.preview_hunk) m("n", "hb", function() gs.blame_line{full=true} end) m("n", "htb", gs.toggle_current_line_blame) m("n", "hd", gs.diffthis)