Skip to content

Conversation

yuukibarns
Copy link

blink.cmp had overcome the similar problems when dealing with regex trigger, solution is to prefer luasnip name over trigger when regTrig = true, which I find to be reasonable.

Demo:

Screencast_20250325_163313.webm

@L3MON4D3
Copy link
Contributor

L3MON4D3 commented May 4, 2025

I think this is a good change, even for regular snippets: if there is a name, it was specified by the snippet-author and likely more descriptive than the trigger, and if the author did not specify a name, name is the same as trigger anyway

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