Skip to content
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

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

Open
flotisable opened this issue Apr 18, 2023 · 0 comments
Open

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

flotisable opened this issue Apr 18, 2023 · 0 comments

Comments

@flotisable
Copy link

flotisable commented 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 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?

@flotisable 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant