Skip to content

Commit

Permalink
Refresh gitsigns on scrollview.contrib.gitsigns setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Nov 9, 2023
1 parent 619bb67 commit 9bbfaaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/scrollview/contrib/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ function M.setup(config)
vim.cmd('silent! ScrollViewRefresh')
end
})

-- Refresh gitsigns to trigger GitSignsUpdate (otherwise existing signs
-- from gitsigns wouldn't be reflected on the scrollbar until the next
-- GitSignsUpdate).
pcall(function()
require('gitsigns').refresh()
end)
end

return M

0 comments on commit 9bbfaaa

Please sign in to comment.