all gitsigns use h
as key prefix
This commit is contained in:
parent
370bbf0edf
commit
df5be57d75
|
@ -10,13 +10,13 @@ return {
|
||||||
vim.keymap.set(mode, l, r, opts)
|
vim.keymap.set(mode, l, r, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
m("n", "]c", function()
|
m("n", "]h", function()
|
||||||
if vim.wo.diff then return "]c" end
|
if vim.wo.diff then return "]c" end
|
||||||
vim.schedule(function() gs.next_hunk() end)
|
vim.schedule(function() gs.next_hunk() end)
|
||||||
return "<Ignore>"
|
return "<Ignore>"
|
||||||
end, {expr=true})
|
end, {expr=true})
|
||||||
|
|
||||||
m('n', '[c', function()
|
m('n', '[h', function()
|
||||||
if vim.wo.diff then return '[c' end
|
if vim.wo.diff then return '[c' end
|
||||||
vim.schedule(function() gs.prev_hunk() end)
|
vim.schedule(function() gs.prev_hunk() end)
|
||||||
return '<Ignore>'
|
return '<Ignore>'
|
||||||
|
|
Loading…
Reference in a new issue