-
Notifications
You must be signed in to change notification settings - Fork 19
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
Wrong context matching #78
Comments
Thanks for reporting. |
Aha, I just understood that it might be wrong handling of the |
We would need to change the keyword pattern for this. As I understood it, this is a Vim regex that the line needs to match in order to trigger completion of a completion item. cmp-nvim-ultisnips/lua/cmp_nvim_ultisnips/source.lua Lines 17 to 19 in 21f02b6
However changing it to something like |
Any workaround or solution? |
I thought about this a but more and came to the conclusion that the Let's say that you have a snippet with
Currently, nvim-cmp will only show words that contain all of the characters in So what nvim-cmp needs to support is the following: So I think you should open an issue on |
Minimum init.lua
Example file
When I put the cursor between
\(\)
, and writemrm
, there is no completion suggestion.If I write
mrm
(with space before), there is.Hovewer, if in the snippet file I set the options to
iA
instead ofi
(to expand automatically), the snippet is expanded, which IMO indicates that cmp-nvim-ultisnips passes whether to show snippet or not to the cmp wrongly.The text was updated successfully, but these errors were encountered: