Skip to content

Completion menu does not show multiple snippets with same prefix #267

Open
@flotisable

Description

@flotisable

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions