Skip to content

Commit

Permalink
Fix: Close alpha after SessionLoadPost. (#267)
Browse files Browse the repository at this point in the history
Fix: Close alpha after SessionLoadPost.
  • Loading branch information
hoofcushion authored Feb 25, 2024
1 parent 1356b9e commit 41283fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ local function enable_alpha(conf, state)
callback = alpha.close,
})

vim.api.nvim_create_autocmd('SessionLoadPost', {
group = group_id,
callback = alpha.close,
})

vim.api.nvim_create_autocmd({'WinClosed'}, {
group = group_id,
buffer = state.buffer,
Expand Down

0 comments on commit 41283fb

Please sign in to comment.