Skip to content

Commit

Permalink
feat: send User AlphaClosed autocommand on close
Browse files Browse the repository at this point in the history
When Alpha starts it sends the User AlphaReady autocommand. As a mirror
to that this patch adds a User AlphaClosed which runs when closing Alpha
to give users a chance to do whatever custom cleanup they need.
  • Loading branch information
will authored and goolord committed Apr 22, 2022
1 parent 6655228 commit 4781fcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ function alpha.start(on_vimenter, conf)
cursor_jumps_press = {}
alpha.redraw = noop
vim.cmd([[au! alpha_temp]])
vim.cmd([[doautocmd User AlphaClosed]])
end
draw()
vim.cmd([[doautocmd User AlphaReady]])
Expand Down

0 comments on commit 4781fcf

Please sign in to comment.