WIP
parent
09fd5fba7d
commit
a07ab9b474
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue