-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deselects after quickly pressing keys #219
Comments
Your wild guess is on the dot 😄 If the item changes position after the new data comes in, would you expect the item to remain selected, or would you expect for your position within the list to be maintained? |
IMO, the selected item should remain selected. |
Make sure you have done the following
blink.cmp
Bug Description
After using the plugin for some time, I've noticed that when using certain LSPs if a key is pressed and very quickly after the key assigned to
select_next
is pressed, instead of respecting the normal order of key presses, it acts as if the order of the presses is reversed.My wild guess is that it is due to some async info coming in from the LSP and thus only happening in slower LSPs (typescript-language-server is the usecase I've noticed), for example, I've actively tried making it bug in lua_ls, but was not able to reproduce.
I attach a short video to illustrate, I hope it can show what I mean.
Steps to reproduce:
select_next
(e.g. "m" and then "Tab")If auto_insert is set, the visual effect is even more jarring as the insert is actually typed but when pressing
accept
the fallback happens instead of the intended action due to nothing being selected, andselect_and_accept
selects the first option and accepts due to nothing being selected.blink-cmp.webm
Relevant configuration
neovim version
NVIM v0.10.2
blink.cmp
version: branch, tag, or commitcommit 6f0fc86
The text was updated successfully, but these errors were encountered: