From ef44657937474145403c2b441b862035914d6a44 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sun, 26 Mar 2023 16:04:40 +0200 Subject: Snippets --- Snippets/tex/environments.lua | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 Snippets/tex/environments.lua (limited to 'Snippets/tex/environments.lua') diff --git a/Snippets/tex/environments.lua b/Snippets/tex/environments.lua deleted file mode 100644 index b9594aa..0000000 --- a/Snippets/tex/environments.lua +++ /dev/null @@ -1,48 +0,0 @@ -local line_begin = require("luasnip.extras.expand_conditions").line_begin - -return { - -- variable environment - s({ trig = 'beg', snippetType = 'autosnippet' }, - fmta( - [[ -\begin{<>} - <> -\end{<>} -]], - { - i(1), - i(2), - rep(1), - } - ), - { condition = line_begin } - ), - -- enumerate environment - s({ trig = 'enu', snippetType = 'autosnippet' }, - fmta( - [[ -\begin{enumerate*} - \item <> -\end{enumerate*} -]], - { - i(1), - } - ), - { condition = line_begin } - ), - -- align environment - s({ trig = 'ali', snippetType = 'autosnippet' }, - fmta( - [[ -\begin{align*} - <> -\end{align*} -]], - { - i(1), - } - ), - { condition = line_begin } - ), -} -- cgit v1.2.3