-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update the scrollbar when folding changes #11
Comments
UPDATE: NVM, sorry. This is configurable as |
Thanks @wookayin! In addition to the If there were This problem is now documented under
|
Thanks. We would need an autocmd event for fold updates for this. As a side note, how about providing |
My interpretation is that the request is so that something like:
can be replaced with:
(where I changed That example would have @wookayin, can you provide more details on the usage you are thinking of? |
@wookayin, I've added the following
Instead of:
it's now possible to use:
My earlier confusion about why this doesn't result in an infinite recursion was resolved by an answer to a question I asked on vi.stackexchange.com. As documented in |
Thank you @dstein64! That was exactly I was figuring. For now, I will need to use this keymap-based workaround to trigger the refresh command for folding-related actions. |
Upstream neovim issue for "fold" update events: neovim/neovim#8538 |
As of 79797a0, an assortment of workarounds are automatically applied, including refreshing the scrollbars after The workarounds can be disabled with |
Scrollbars are now refreshed after
|
Great plugin!
Can we have the scrollbar updated when foldlevel is updated (e.g. zM, zR)? For example, when
zM
is pressed to fold everything (orzR
to unfold everything), the scroll bar currently does not get updated.The text was updated successfully, but these errors were encountered: