summaryrefslogtreecommitdiffstats
path: root/Snippets/tex/math.lua
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-26 16:04:40 +0200
committerNanderty <psopka@sopka.ch>2023-03-26 16:04:40 +0200
commitef44657937474145403c2b441b862035914d6a44 (patch)
treecefeca8f30c2b8b16dd7b7ed877310a0f181fba0 /Snippets/tex/math.lua
parent063c2d97218cdabe0634054a8038cd6b5c9a9a12 (diff)
downloadneovim-config-ef44657937474145403c2b441b862035914d6a44.tar.gz
neovim-config-ef44657937474145403c2b441b862035914d6a44.tar.bz2
neovim-config-ef44657937474145403c2b441b862035914d6a44.zip
Snippets
Diffstat (limited to 'Snippets/tex/math.lua')
-rw-r--r--Snippets/tex/math.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/Snippets/tex/math.lua b/Snippets/tex/math.lua
deleted file mode 100644
index 7299e04..0000000
--- a/Snippets/tex/math.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local in_mathzone = function()
- return vim.fn['vimtex#syntax#in_mathzone']() == 1
-end
-
-return {
- s({ trig = '/', snippetType = 'autosnippet' },
- fmta(
- '\\frac{<>}{<>}',
- {
- i(1),
- i(2),
- }
- ),
- { condition = in_mathzone }
- ),
- s({ trig = "in", snippetType = "autosnippet" },
- fmta(
- '\\int_{<>}^{<>}',
- {
- i(1),
- i(2),
- }
- ),
- { condition = in_mathzone }
- ),
- s({ trig = 'df', snippetType = 'autosnippet' },
- { t('\\diff ') },
- { condition = in_mathzone }
- ),
-}