Skip to content

Add Expects snippets #550

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

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

Add Expects snippets #550

wants to merge 2 commits into from

Conversation

pmareke
Copy link

@pmareke pmareke commented Feb 7, 2025

Maybe this is interesting to someone else!

https://expects.readthedocs.io

PD: Thanks for this amazing plugin!

Copy link
Collaborator

@OkelleyDevelopment OkelleyDevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pmareke, an initial pass on this looks good. However we do need to add new entry to the package.json so that this is available for users to extend under the python filetype.

e.g,

luasnip.filetype_extend("python", {"python-expects"})

Would mean we have in the package.json an entry like:

{
  "language": "python-expects",
  "path": "./snippets/python/expects.json"
}

@pmareke
Copy link
Author

pmareke commented Apr 21, 2025

Sure, done!

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