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({
|
wk.register({
|
||||||
["[c"] = {
|
["[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()
|
function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
return "[c"
|
return "[c"
|
||||||
|
@ -90,7 +78,19 @@ return {
|
||||||
end)
|
end)
|
||||||
return "<Ignore>"
|
return "<Ignore>"
|
||||||
end,
|
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 })
|
}, { expr = true })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue