You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When enable ts highlight in rust files, things such as go to definition or telescope find_files always need 0.02~0.05s to load, which is a noticeable delay.
I measured this using
Turn off ts highlight makes navigation much smoother. Although the lag only happened at fitst load time. Describe the solution you'd like
Add an option to Delay actual highlight(parse) time to make buffer open instantly.
Describe alternatives you've considered
Maybe cache the result per session or pre-parse workspace files?
Additional context
I tried helix and their ts parse is crazy fast, open buffer first time(go to definition to std) have no feeling of any delay, I wander Why neovim doing this slow.
The text was updated successfully, but these errors were encountered:
open an simple rust file and put cursor at such as Vec::new, type gd, in 0.10 it takes 0.015s and 0.008s in 0.95 in my mac(without treesiter).
with treesitter enabled, the time is 0.037(0.10) vs 0.020(0.9.5).
Highlighting is performed by Neovim, not this plugin, so this is not actionable here. And these steps are much too complex and involve LSP, so are not good regression benchmarks anyway.
Is your feature request related to a problem? Please describe.
When enable ts highlight in rust files, things such as go to definition or telescope find_files always need 0.02~0.05s to load, which is a noticeable delay.
I measured this using
Turn off ts highlight makes navigation much smoother. Although the lag only happened at fitst load time.
Describe the solution you'd like
Add an option to Delay actual highlight(parse) time to make buffer open instantly.
Describe alternatives you've considered
Maybe cache the result per session or pre-parse workspace files?
Additional context
I tried helix and their ts parse is crazy fast, open buffer first time(go to definition to std) have no feeling of any delay, I wander Why neovim doing this slow.
The text was updated successfully, but these errors were encountered: