-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Remove description defaulting to the trigger? #1006
Comments
Hmmm good point. One pragmatic, and backwards compatible way of solving this would be to have consumers check if the description is the same as the trigger. When phrased as "prevent putting the same information twice" it doesn't even seem that bad :D |
note: Actually the first text in doc window is the snip name: I've opened saadparwaiz1/cmp_luasnip#60 |
Ahhhh alright 👍 |
While working on #1005 I noticed the snippet description defaults to the snippet trigger, why?
I'm thinking it would be more flexible to not have a default for the description, and scripts that want to use this could decide to use the trigger as default or not.
For example



cmp_luasnip
already shows the trigger at the top:without a description the doc looks like:
Which repeats the trigger for no reason
Without the default to trigger that would look like:
Which is cleaner IMO.
The text was updated successfully, but these errors were encountered: