WIP
parent
5e8c2ac0a7
commit
ca6b7a4319
|
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue