main
Bryan 2024-11-08 00:22:28 -06:00
parent 0826179c90
commit 68a7d86c61
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ function M.load_session(session)
pattern = "PersistedSavePost",
callback = function()
vim.print("delete and load")
-- for _, buf in ipairs(vim.api.nvim_list_bufs()) do
-- vim.api.nvim_buf_delete(buf, { force = true })
-- end
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
vim.api.nvim_buf_delete(buf, { force = true })
end
persisted.load({ session = session.file_path })
return true
end,