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
git clone https://github.com/mgnsk/nvim-cmp-stutter-repro.git
cd nvim-cmp-stutter-repro
bash build.sh
bash run.sh
Now move inside a go function, type append(, wait for the signature and completion to pop up and try to type the letter c 4 times as fast as possible. It seems to occur in about 4 out of 5 attempts.
It seems to be introduced in #1583. The commit before that didn't stutter.
The cmp.visible() function was made synchronous in 0d23640
It seems like these functions should be synchronous with regards to the global filter and not with regards to the UI.
Also in ray signature, I tried completely removing the call to cmp.visible() and it still worked, without the stutter now. So maybe something can be done there.
FAQ
Announcement
Minimal reproducible full config
Description
The input delay was supposedly fixed (#1606, #1608) but the issue is still there. Also linking a related issue: ray-x/lsp_signature.nvim#273.
Steps to reproduce
Repro (requires docker):
git clone https://github.com/mgnsk/nvim-cmp-stutter-repro.git cd nvim-cmp-stutter-repro bash build.sh bash run.sh
Now move inside a go function, type
append(
, wait for the signature and completion to pop up and try to type the letterc
4 times as fast as possible. It seems to occur in about 4 out of 5 attempts.Expected behavior
Expected no stutter.
Actual behavior
Recording of the stutter with ray signature in use: https://asciinema.org/a/EMs6LU8QXUYntcm9Gkf3oy58l
Without ray signature, no stutter: https://asciinema.org/a/KMSlHcFPWyPKw1yJNhinwCH56
Additional context
As a hack, the stutter goes away when this function:
nvim-cmp/lua/cmp/init.lua
Lines 86 to 89 in 09ff53f
is changed to
indicating that the delay comes from
cmp.sync()
.The text was updated successfully, but these errors were encountered: