temporarily remove SessionWritePost autocommand to see if that's causing the exit hang
parent
ad183f1a8c
commit
12cdb6d705
|
|
@ -110,15 +110,15 @@ function M.stop()
|
|||
M.fire("Stop")
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("SessionWritePost", {
|
||||
callback = function()
|
||||
if type(config.save_post) == "function" then
|
||||
config.save_post()
|
||||
end
|
||||
M.fire("SavePost")
|
||||
-- return true -- returning true deletes autocmd after fired
|
||||
end,
|
||||
})
|
||||
-- vim.api.nvim_create_autocmd("SessionWritePost", {
|
||||
-- callback = function()
|
||||
-- if type(config.save_post) == "function" then
|
||||
-- config.save_post()
|
||||
-- end
|
||||
-- M.fire("SavePost")
|
||||
-- -- return true -- returning true deletes autocmd after fired
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
---Save the session
|
||||
---@param opts? { force?: boolean, session?: string }
|
||||
|
|
|
|||
Loading…
Reference in New Issue