fix(nvim): gitsigns prev/next keymap
This commit is contained in:
parent
70faf84ba3
commit
4c99c22425
1 changed files with 13 additions and 13 deletions
|
@ -69,18 +69,6 @@ return {
|
|||
|
||||
wk.register({
|
||||
["[c"] = {
|
||||
function()
|
||||
if vim.wo.diff then
|
||||
return "]c"
|
||||
end
|
||||
vim.schedule(function()
|
||||
gs.next_hunk()
|
||||
end)
|
||||
return "<Ignore>"
|
||||
end,
|
||||
"Go to Next Hunk",
|
||||
},
|
||||
["]c"] = {
|
||||
function()
|
||||
if vim.wo.diff then
|
||||
return "[c"
|
||||
|
@ -90,7 +78,19 @@ return {
|
|||
end)
|
||||
return "<Ignore>"
|
||||
end,
|
||||
"Go to Previous Hunk",
|
||||
"Go to previous hunk",
|
||||
},
|
||||
["]c"] = {
|
||||
function()
|
||||
if vim.wo.diff then
|
||||
return "]c"
|
||||
end
|
||||
vim.schedule(function()
|
||||
gs.next_hunk()
|
||||
end)
|
||||
return "<Ignore>"
|
||||
end,
|
||||
"Go to next hunk",
|
||||
},
|
||||
}, { expr = true })
|
||||
|
||||
|
|
Loading…
Reference in a new issue