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