all gitsigns use h as key prefix

This commit is contained in:
leafee98 2023-05-22 09:59:06 +08:00
parent 370bbf0edf
commit df5be57d75

View file

@ -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 "<Ignore>"
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 '<Ignore>'