cmp_luasnip icon indicating copy to clipboard operation
cmp_luasnip copied to clipboard

fix: prefer luasnip name over regex trigger in completion results

Open yuukibarns opened this issue 8 months ago • 1 comments

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

yuukibarns avatar Mar 25 '25 08:03 yuukibarns

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

L3MON4D3 avatar May 04 '25 12:05 L3MON4D3