Skip to content

Commit

Permalink
Execute AutoSaveSession on VimLeavePre instead
Browse files Browse the repository at this point in the history
Fixes #268
  • Loading branch information
rmagatti committed Apr 14, 2024
1 parent e2c5fb8 commit 0744e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/auto-session/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ function SetupAutocmds()
end,
})

vim.api.nvim_create_autocmd({ "VimLeave" }, {
vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
group = group,
pattern = "*",
callback = function()
Expand Down

0 comments on commit 0744e0d

Please sign in to comment.