diff options
Diffstat (limited to 'lua/Snippets/tex/math.lua')
| -rw-r--r-- | lua/Snippets/tex/math.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua new file mode 100644 index 0000000..670ed80 --- /dev/null +++ b/lua/Snippets/tex/math.lua @@ -0,0 +1,29 @@ +local tex = require('Snippets.luasniphelperslatex') +local helper = require('Snippets.luasniphelpers') + +return { + s({ trig = '/', snippetType = 'autosnippet' }, + fmta( + '\\frac{<>}{<>}', + { + i(1), + i(2), + } + ), + { condition = tex.in_mathzone } + ), + s({ trig = "in", snippetType = "autosnippet" }, + fmta( + '\\int_{<>}^{<>}', + { + i(1), + i(2), + } + ), + { condition = tex.in_mathzone } + ), + s({ trig = 'df', snippetType = 'autosnippet' }, + { t('\\diff ') }, + { condition = tex.in_mathzone } + ), +} |
