-
Notifications
You must be signed in to change notification settings - Fork 49
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
bug: conceallevel isn't togglable when render-markdown is toggled off #208
Comments
If I'm not understanding something let me know. But based on your wording are you saying that when this plugin is disabled you still expect it to modify the conceallevel on mode changes? Or are you saying that you can't manually change the conceallevel and this plugin locks it to 3 when it's disabled? |
Brief steps to reproduce:
|
## Details Issue: #208 When state is disabled the update logic is still triggered. For the most part this doesn't really do anything as it triggers the non rendered view. However it does hijack the window options and prevents users from changing them by constantly changing them back. To fix this gate the event based callbacks on state being enabled. The only case where state is disabled in the UI is from user commands.
Ah, thanks, was able to reproduce this. Should be fixed by: bea6f20. |
Thank you a lot, man! ⚡ |
Neovim version (nvim -v)
0.10.1
Neovim distribution
LazyVim
Operating system
Windows 11
Terminal emulator / GUI
WezTerm
Describe the bug
LazyVim provides shortcuts to toggle render-markdown and conceal level.
Due to plugin configuration, it's not possible to have a toggleable conceal level for disabled render-markdown.
I always have 3 as the conceal level for any state of render-markdown
Expected behavior
Conceal level changes from 3 to 0 and back for disabled render-markdown
Healthcheck output
Plugin configuration
Plugin error log
Confirmations
Additional information
No response
The text was updated successfully, but these errors were encountered: