map gitsign next/prev to <l>h{np}, preview as <l>hv
This commit is contained in:
parent
7c7e823b54
commit
fdab14f6dc
|
@ -12,13 +12,13 @@ return {
|
|||
vim.keymap.set(mode, l, r, opts)
|
||||
end
|
||||
|
||||
m("n", "<leader>hj", function()
|
||||
m("n", "<leader>hn", function()
|
||||
if vim.wo.diff then return "]c" end
|
||||
vim.schedule(function() gs.next_hunk() end)
|
||||
return "<Ignore>"
|
||||
end, {expr=true})
|
||||
|
||||
m("n", "<leader>hk", function()
|
||||
m("n", "<leader>hp", function()
|
||||
if vim.wo.diff then return "[c" end
|
||||
vim.schedule(function() gs.prev_hunk() end)
|
||||
return "<Ignore>"
|
||||
|
@ -31,7 +31,7 @@ return {
|
|||
m("n", "<leader>hS", gs.stage_buffer)
|
||||
m("n", "<leader>hu", gs.undo_stage_hunk)
|
||||
m("n", "<leader>hR", gs.reset_buffer)
|
||||
m("n", "<leader>hp", gs.preview_hunk)
|
||||
m("n", "<leader>hv", gs.preview_hunk)
|
||||
m("n", "<leader>hb", function() gs.blame_line{full=true} end)
|
||||
m("n", "<leader>htb", gs.toggle_current_line_blame)
|
||||
m("n", "<leader>hd", gs.diffthis)
|
||||
|
|
Loading…
Reference in a new issue