Skip to content

Commit

Permalink
neovim: fix gitsigns next/prev funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Dec 10, 2024
1 parent 9564a43 commit aaea846
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nvim/lua/plugins/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ return {
if vim.wo.diff then
vim.cmd.normal({ ']c', bang = true })
else
gitsigns.nav_hunk('next')
vim.schedule(function()
gitsigns.nav_hunk('next')
end)
end
end
local function prev_hunk()
if vim.wo.diff then
vim.cmd.normal({ '[c', bang = true })
else
gitsigns.nav_hunk('prev')
vim.schedule(function()
gitsigns.nav_hunk('prev')
end)
end
end

Expand Down

0 comments on commit aaea846

Please sign in to comment.