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
Ultisnips snippet with "Regular expression" snippet options are not displayed in PUM, but work #17
Comments
Because for most of regex patterns, it's not possible to know what should be inserted with complete item, so can't show them in pum. |
Sure, that makes sense. Also, no problem for me :) |
@chemzqm Is it possible to enable this behavior anyway? I have a bunch of regex snippets from Ultisnips and I want them to show in the completion menu. If they're not shown I forget they exist because I don't manually trigger completion. |
Just ran into this. Doubt anyone can remember all their snippets so pretty much makes regex option unusable. Going to stick with UltiSnips because the short description's helpful but will start refactoring any that use regex. |
<c-y> is used to select and expand snippets that appear in CoC's preview pop up. There's a [known limitation](neoclide/coc-snippets#17) that snippets definitions that use regex will not show up in the preview. These regex-based snippets are still handy, however. For consistency, also use <c-y> to expand them.
UltiSnips snippets with "regular expression (r)" option are not displayed in the PUM. They are expanded 100% correctly (including jumping to placeholders).
Example snippet:
If I expand this in an empty line nothing happens, which is correct.
If I expand this after e.g.
[]
, I can get items in the PUM from other sources, like buffer, but not from snippet source. But, when expanding the item, it works fine.Seems like not high priority bug because I can work with it fine, it's just display issue.
From UltiSnips docs:
The text was updated successfully, but these errors were encountered: