cmp_luasnip
cmp_luasnip copied to clipboard
fix: prefer luasnip name over regex trigger in completion results
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:
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