-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Guidance to set triggers #4
Comments
By default Luasnip just matches all snippet-triggers to the cursor position and expands whichever snippet matches first, disregarding word boundaries. |
Maybe add a key at the first argument that accepts out-the-box functions or a custom one? into the parser function |
Yeah, that's the most comfortable way I think. |
Alright, you can now set 'wordTrig' to only have snippets expand if the entire word matches, example here. |
# This is the 1st commit message: fix(snipmate): correctly escape backtick # This is the commit message L3MON4D3#2: test(parser): add backtick escape tests # This is the commit message L3MON4D3#3: fix(snipmate): replace escaped backtick in body # This is the commit message L3MON4D3#4: Auto generate docs
If I have this
and I have editing
must expand to
|cond ? true : false
but was expanded astexport |member
where | is the cursor
The text was updated successfully, but these errors were encountered: