Skip to content

Commit

Permalink
feat: re-render on ModeChanged event (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o committed Mar 14, 2024
1 parent a3df527 commit a03020c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/incline/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ M.update = Debounce(function(opts)
or events.CursorMovedI
or events.FileWritePost
or events.BufWritePost
or events.ModeChanged
then
changes.render = true
end
Expand Down Expand Up @@ -129,6 +130,7 @@ M.setup = function()
'BufWritePost',
'FocusLost',
'FocusGained',
'ModeChanged',
-- TODO: Support user-configurable events
}
util.autocmd(events, {
Expand Down

0 comments on commit a03020c

Please sign in to comment.