-
Notifications
You must be signed in to change notification settings - Fork 49
bug: Issue when using Zen mode plugin. #122
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
Comments
I'll need to play around with zen mode to see what's going on. I imagine it's not a problem in either plugin exactly. More how zen mode handles the window doesn't play nicely with how this plugin handles events. |
Ah, I know the issue. It's to do with how this plugin determines the window. We use the However zen mode effectively triggers this exact situation, the underlying window remains open plus the new zen mode window. From there we continue to use the old window hence the range to parse and the cursor are never correctly determined. I'll work on a fix, might not have time to get to it today, probably tomorrow though. |
# Details Issue: #122 When using zen mode plugin 2 instances of the same buffer are open in different windows. However this plugin only picks up the first window, thus interactions with the second window did nothing. To fix this rather than using the `bufwinid` method to go from buffer to window we now instead get the current window and pass that as input to the update method along with the buffer. That way the buffer can be associated with any number of windows but events will still apply to whatever the active window is.
Should be fixed in: 1c7b5ee Update and LMK if it works! |
It does work. Thank you so much!!! |
Neovim version (nvim -v)
0.11
Operating system
WSL 2
Terminal emulator / GUI
WezTerm
Describe the bug
When using Markdown together with Folke's Zen Mode, only the part of the document that is visible on the screen at the time of toggling the Zen mode is being styled, other parts of it will look like Render-Markdown is disabled.
Expected behavior
To have the whole file rendered.
Healthcheck output
Plugin configuration
Confirmations
Additional information
I am not sure if this is an issue that can be addressed here or on Folke's Zen mode plugin side. If it is not related to Render-Markdown, feel free to close it and I will post it there.
The text was updated successfully, but these errors were encountered: