From df5be57d75a7b3c5e2444694d5f9ccc2ce214b8b Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 22 May 2023 09:59:06 +0800 Subject: [PATCH] all gitsigns use `h` as key prefix --- lua/plugins/20-git.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/20-git.lua b/lua/plugins/20-git.lua index 12fb3be..a4c6468 100644 --- a/lua/plugins/20-git.lua +++ b/lua/plugins/20-git.lua @@ -10,13 +10,13 @@ return { vim.keymap.set(mode, l, r, opts) end - m("n", "]c", function() + m("n", "]h", function() if vim.wo.diff then return "]c" end vim.schedule(function() gs.next_hunk() end) return "" end, {expr=true}) - m('n', '[c', function() + m('n', '[h', function() if vim.wo.diff then return '[c' end vim.schedule(function() gs.prev_hunk() end) return ''