-
I am using For example, consider 2 session
As I switch from
From olimorris/persisted.nvim, this issue is addressed by setting up an vim.api.nvim_create_autocmd("User", {
pattern = "PersistedTelescopeLoadPre",
callback = function(session)
-- Save the currently loaded session using the global variable
require("persisted").save({ session = vim.g.persisted_loaded_session })
-- Delete all of the open buffers
vim.api.nvim_input("<ESC>:%bd!<CR>")
end,
}) However, this Question: Is it possible to implement something similar to Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's just how persisted works and should be fixed there. They should fire an event when a session will be loaded. |
Beta Was this translation helpful? Give feedback.
That's just how persisted works and should be fixed there. They should fire an event when a session will be loaded.
That's not the task of snacks.