You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use my math snippets defined for latex in markdown. Instead of having one huge snippet file, I break them down into separate lua files and put them all in the same directory. For example, all my math snippets are defined inside $snippet_root/tex/math.lua. I want these snippets to be available for markdown. At the moment, if I include ls.filetype_extend("markdown", {"tex"}) in the snippet file definition for markdown, I get all the snippets from tex, not just those defined in math.lua. Is there a way to select extend markdown snippets with just math.lua and not the other files?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use my math snippets defined for latex in markdown. Instead of having one huge snippet file, I break them down into separate lua files and put them all in the same directory. For example, all my math snippets are defined inside
$snippet_root/tex/math.lua
. I want these snippets to be available for markdown. At the moment, if I includels.filetype_extend("markdown", {"tex"})
in the snippet file definition for markdown, I get all the snippets from tex, not just those defined inmath.lua
. Is there a way to select extend markdown snippets with justmath.lua
and not the other files?Beta Was this translation helpful? Give feedback.
All reactions