-
Notifications
You must be signed in to change notification settings - Fork 73
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
Incompatibility with nvim-cmp snippet completion #328
Comments
Does cmp offer any mechanism to tell when it is "busy?" Like a function or a variable I can inspect |
Hmm, you can check if the menu is visible, if that helps:
See https://github.com/hrsh7th/nvim-cmp/blob/main/doc/cmp.txt#L155 |
Unfortunately, I can't reproduce the problem with the config given. One thing you can try is Line 780 in d30b72d
|
It seems to only happen on the nightly build of neovim: Right now I'm on latest v0.10.0-dev-1535+g9ecb43b63 but also had the problem on an older build based on commit c4f4c7a35 from September. I've tried with v0.9.3 and don't have the issue there, either. So not sure if it's worth to investigate. On the other hand if the problem is not adressed it may still be in Neovim v0.10.0 when it's released. |
Thanks but it does not change the behavior. If I find time I can bisect the commit that introduced the problem in Neovim. |
👍 Been hitting this issue for a few months, just got around to tracking the problem to vim-matchup. |
cmp does not use vim's pum instead a custom window. I just pushed a commit that considers cmp.visible as recommended by @mikehaertl |
+1 happens to me as well, thanks for the plugins btw, hopefully this issue will be resolved soon Altho |
+1 this is happening to me. I'm specifically noticing this with emmet_ls and nvim-cpm. |
|
Explain the issue
When this plugin is enabled I experience an issue with certain vsnippet based snippets in nvim-cmp:
If I move over one of the affected snippets in the nvim-cmp popup menu, the menu immediately closes (without confirmation!). It then leaves me with an incompletely expanded snippet in insert mode.
How to reproduce
Use the config below and start Neovim with
nvim -u demo.vim
.x
- it should bring up the completion menu<c-j>
The completion menu will close and leave you in this condition:
Now comment out the vim-matchup plugin and try the same. This time the menu doesn't close and you can select any item:
Additional information
So far I found out that the snippet must meet certain conditions:
textEdit
[
,{
, etc.Reported here before: hrsh7th/cmp-vsnip#9
Minimal vimrc file
The text was updated successfully, but these errors were encountered: