Skip to content
Discussion options

You must be logged in to vote

I've been thinking of removing this part from my config and instead naming my snippet as simply "tex.json" but that seems a bit hacky. Is there any other way to go about doing this?

My suggestion would be to do exactly like this. It is not hacky at all and is the suggested way to customize language-specific snippets.

You'd not have to remove the part completely, but it can be something like this:

-- Adjust language patterns
local latex_patterns = { 'my-tex.json' }
local lang_patterns = {
  tex = latex_patterns, plaintex = latex_patterns,
  -- Recognize special injected language of markdown tree-sitter parser
  markdown_inline = { 'markdown.json' },
}
local gen_loader = require('mini.sni…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@echasnovski
Comment options

Comment options

You must be logged in to vote
1 reply
@hownioni
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
3 participants