fix(nvim): gitsigns prev/next keymap

This commit is contained in:
winston 2023-06-13 08:59:42 +02:00
parent 70faf84ba3
commit 4c99c22425
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -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 })