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

Feature: show snippet descriptions #61

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

staticssleever668
Copy link

No description provided.

@staticssleever668
Copy link
Author

Testing:

{
  "date": {
    "body": ["${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}"],
    "description": "ISO 8601 date",
    "prefix": "date"
  },
  "datetime": {
    "body": [
      "${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}"
    ],
    "prefix": "datetime"
  }
}

1
2

Also, utils.preview helper is redundant as expand_vars() calls
safe_parse like that within itself.
cmp_luasnip showed it like that, but it's pretty much pointless.
@dariuskramer
Copy link

This feature would be greatly appreciated 🙏

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