gbprod / yanky.nvim

Improved Yank and Put functionalities for Neovim
Do What The F*ck You Want To Public License
802 stars 22 forks source link

Input delay after FocusGained (switching to NeoVim) #186

Open TamaMcGlinn opened 4 weeks ago

TamaMcGlinn commented 4 weeks ago

I recently started having a problem on a machine I access over SSH where, as I switch focus back to NeoVim, input is delayed by about 3 seconds, and the cursor disappears for a few seconds longer.

After bisecting through my plugins, I found that removing yanky fixed the issue. I then tried many commits of yanky, back to v1.0.0 but all have the same result.

However, this problem does not occur on another machine I use locally (not over SSH), even though I'm on the same latest commit of Yanky.

After a clue elsewhere about FocusGained aucmd, I found that the problem is with the sync_with_ring option.

Long story short, if you are running into this, set sync_with_ring to false. It may be a good idea to set this as the default.

If you would like further testing on the machine with the problem, let me know and I'll be happy to help.