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

In-word expansion (equivalent to Ultisnips i) #23

Open
jghauser opened this issue Feb 16, 2021 · 0 comments
Open

In-word expansion (equivalent to Ultisnips i) #23

jghauser opened this issue Feb 16, 2021 · 0 comments

Comments

@jghauser
Copy link

I'm not sure whether this is already possible. If so, then this is a question about how to do it; if it isn't possible, it's a suggestion for a new feature.

Ultisnips allows in-word expansion. Here's how they describe it:

i In-word expansion - By default a snippet is expanded only if the tab
trigger is the first word on the line or is preceded by one or more
whitespace characters. A snippet with this option is expanded
regardless of the preceding character. In other words, the snippet can
be triggered in the middle of a word.

I use this a lot to insert comments in markdown files. For instance I will write This is a randomcm and then expand the cm snippet to get This is a random<!-- comment here -->. It would be great if I could do the same in snippets.nvim!

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

No branches or pull requests

1 participant