temporarily remove SessionWritePost autocommand to see if that's causing the exit hang

main
Bryan 2024-11-11 06:23:06 -06:00
parent ad183f1a8c
commit 12cdb6d705
1 changed files with 9 additions and 9 deletions

View File

@ -110,15 +110,15 @@ function M.stop()
M.fire("Stop") M.fire("Stop")
end end
vim.api.nvim_create_autocmd("SessionWritePost", { -- vim.api.nvim_create_autocmd("SessionWritePost", {
callback = function() -- callback = function()
if type(config.save_post) == "function" then -- if type(config.save_post) == "function" then
config.save_post() -- config.save_post()
end -- end
M.fire("SavePost") -- M.fire("SavePost")
-- return true -- returning true deletes autocmd after fired -- -- return true -- returning true deletes autocmd after fired
end, -- end,
}) -- })
---Save the session ---Save the session
---@param opts? { force?: boolean, session?: string } ---@param opts? { force?: boolean, session?: string }