symbols-outline.nvim icon indicating copy to clipboard operation
symbols-outline.nvim copied to clipboard

Slow auto_preview

Open axieax opened this issue 3 years ago • 2 comments
trafficstars

auto_preview seems to refresh around 4000 seconds (the default updatetime) after moving my cursor. Updating my updatetime to be faster doesn't have any effect on this delay. I've seen others have much faster refresh times, so I'm not sure why my delay is so long.

After a lot of time, I found that I can achieve my desired instant_preview behaviour by updating this aucommand to also include the CursorMoved event. Do you have any idea what causes this long delay?

axieax avatar Mar 12 '22 06:03 axieax

Not sure but check this out https://github.com/antoinemadec/FixCursorHold.nvim

simrat39 avatar Mar 12 '22 09:03 simrat39

Not sure but check this out https://github.com/antoinemadec/FixCursorHold.nvim

ahahah I already use this plugin so CursorHold works now :) the timing thing is an issue tho.

Also, I've created a PR to add an instant_preview feature (delay=0) which should address this!

axieax avatar Mar 12 '22 09:03 axieax