Bryan 2024-11-07 23:34:23 -06:00
parent 09fd5fba7d
commit a07ab9b474
2 changed files with 7 additions and 1 deletions

View File

@ -252,6 +252,13 @@ function M.setup(opts)
if config.autostart and M.allowed_dir() and vim.g.persisting == nil and not start_args then
M.start()
end
vim.api.nvim_create_autocmd("User", {
pattern = "PersistedSavePost",
callback = function()
print("After Saved callback")
end,
})
end
return M

View File

@ -44,7 +44,6 @@ function M.load_session(session)
return true
end,
})
vim.print("saving session!!!")
persisted.save({ session = vim.g.persisted_loaded_session })
end