From ef44657937474145403c2b441b862035914d6a44 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sun, 26 Mar 2023 16:04:40 +0200 Subject: Snippets --- Snippets/tex/math.lua | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Snippets/tex/math.lua (limited to 'Snippets/tex/math.lua') 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 } - ), -} -- cgit v1.2.3