How do I prevent the session load in "PersistedLoadPre" #136
Answered
by
olimorris
Ajaymamtora
asked this question in
Q&A
-
Id like to check if any terminal buffers are open in this event, prompt the user, then if they reject, cancel the session load vim.api.nvim_create_autocmd({ "User" }, {
pattern = "PersistedLoadPre",
group = group,
callback = function(session)
-- prompt -> exit
end,
}) |
Beta Was this translation helpful? Give feedback.
Answered by
olimorris
Aug 17, 2024
Replies: 1 comment
-
You can't. I'd advise creating your own function which checks for terminal buffers and then loads a session. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
olimorris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't. I'd advise creating your own function which checks for terminal buffers and then loads a session.