-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error executing vim.schedule lua callback #80
Comments
Wrapped it in |
It's a bad idea. I would highly recommend you to use |
Why is it a bad idea? |
Because it's slower and |
For something that is run occasionally I don't think that is at all a concern |
In my case it slowdowns my startup if I have any notification.
As to me passing a function into a function is less clear that a regular check, especially if this check is used to prevent specific kind of error you trying to avoid. But as you say. |
After 0d02acf I have the following errors:
I use a plugin that closes all currently opened buffers and sources session: https://github.com/Shatur/neovim-session-manager
And if on startup I have some notifications - they will be removed with the error above because of this line:
nvim-notify/lua/notify/service/buffer/init.lua
Line 75 in 486d6ad
Could you use
nvim_buf_is_valid
before calling this to ensure that other plugins or user didn't touch the buffer?The text was updated successfully, but these errors were encountered: