Closed tknightz closed 2 months ago
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?
Yes! Is there any way to turn it off when editing a big file?
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
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: