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

fix: prefer luasnip name over regex trigger in completion results #1382

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

soifou
Copy link
Collaborator

@soifou soifou commented Mar 3, 2025

This addresses an issue where snippets composed only by lua regex
patterns make them barely searchable in the completion menu.

Luasnip provides a name property that, when available, display the
snippet's name instead of the raw regex trigger pattern, making
regex triggers discoverable and user-friendly.

Related to #1373

Co-authored-by: helins [email protected]

This addresses an issue where snippets composed only by lua regex
patterns make them barely searchable in the completion menu.

Luasnip provides a `name` property that, when available, display the
snippet's `name` instead of the raw regex `trigger` pattern, making
regex triggers discoverable and user-friendly.

Related to Saghen#1373

Co-authored-by: helins <[email protected]>
@Saghen Saghen merged commit 662a67c into Saghen:main Mar 3, 2025
4 checks passed
@Saghen
Copy link
Owner

Saghen commented Mar 3, 2025

Thank you!

@soifou soifou deleted the fix/luasnip-regtrig branch March 3, 2025 22:47
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

Successfully merging this pull request may close these issues.

2 participants