Skip to content
Discussion options

You must be logged in to vote
  • a snippet is manually triggered after writing a regex and the expansion gives me a dynamic snippet that depends on the regex (for example, if I want to write a matrix, I can give its size as “parameters,” say 3x2, and I am given a snippet with 6 placeholders.

It is also mostly possible with 'mini.snippets', but with a little bit different fundamental approach.

The 'mini.snippets' module only supports LSP syntax for snippets. But it supports dynamic [computation/preparation of snippets]. It is done on every expand and can leverage different types of snippets supplied in config.snippets.

What can be suitable here is a single function loader that is added only for dedicated LaTeX filetyp…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@amuller-maths
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.snippets
2 participants