-
Notifications
You must be signed in to change notification settings - Fork 29
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
Laggy in diff-mode with a thousand lines folded #85
Comments
sorry for late reply, I found that whenever edit a big file (10w+ lines), it could be very laggy, and It not caused by my plugin, so... maybe I can't provide a solution if there are more info or, maybe there is another way to prevent this, when the chunk is too big (like more than 500 lines), not render it, is this OK? |
Yes! Is there any way to turn it off when editing a big file? |
add new options choke_at_linecount check_choke
you can try #86 if you want to test,there is a new option choke_at_linecount,hint:you have to set for every mod |
add new options choke_at_linecount check_choke
add new options choke_at_linecount check_choke
Describe the bug
In diff-mode, Vim/Neovim uses different fold method, it can lead to thousands of unchanged lines will be folded. Rendering chunks in folded lines costs a lot of CPU resources and laggy while scrolling.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shouldn't render chunk in folded lines, or is there any way to disable it in diff-mode.
Screenshots
Additional context
Here is my
hlchunk
config:The text was updated successfully, but these errors were encountered: