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
I'm using vim-mucomplete and have installed vim-vsnip-integ.
Recently, I'm trying multiple snippets with same prefix since there are different snippets for different codebase, but the complete menu only show the first one, as shown in the image(I have 2 snippets with prefix if)
There is issue(#160) asking about the feature and it seems the feature is supported.
I have found there is has_key function call in the vsnip#get_complete_items function to skip the item with same prefix. If I comment out the checking, multiple snippets with same prefix can show up as expected, while I can not expand the snippet by just complete it.
Checking the git log shows the has_key function is added in commit 70af953 to fix the issue #143
Is the support for multiple snippets with same prefix dropped intentionally or is it a bug and should be fixed?
And is there way to expand the snippet by just complete it when there is multiple snippet with same prefix?
The text was updated successfully, but these errors were encountered:
flotisable
changed the title
Do not show multiple snippets with same prefix in completion menu
Completion menu does not show multiple snippets with same prefix
Apr 18, 2023
I'm using vim-mucomplete and have installed vim-vsnip-integ.
Recently, I'm trying multiple snippets with same prefix since there are different snippets for different codebase, but the complete menu only show the first one, as shown in the image(I have 2 snippets with prefix if)
There is issue(#160) asking about the feature and it seems the feature is supported.
I have found there is
has_key
function call in thevsnip#get_complete_items
function to skip the item with same prefix. If I comment out the checking, multiple snippets with same prefix can show up as expected, while I can not expand the snippet by just complete it.Checking the git log shows the
has_key
function is added in commit 70af953 to fix the issue #143Is the support for multiple snippets with same prefix dropped intentionally or is it a bug and should be fixed?
And is there way to expand the snippet by just complete it when there is multiple snippet with same prefix?
The text was updated successfully, but these errors were encountered: