Bryan 2024-11-07 17:17:53 -06:00
parent 5e8c2ac0a7
commit ca6b7a4319
1 changed files with 4 additions and 4 deletions

View File

@ -35,12 +35,12 @@ function M.load_session(session)
pattern = "PersistedSavePost",
callback = function()
-- vim.schedule(function()
for _, buf in ipairs(vim.api.nvim_list_bufs()) do
vim.api.nvim_buf_delete(buf, { force = true })
end
vim.print("delete and load")
-- 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 })
-- end)
vim.print("delete and load")
return true
end,
})