summaryrefslogtreecommitdiffstats
path: root/Snippets/tex/environments.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/environments.lua
parent063c2d97218cdabe0634054a8038cd6b5c9a9a12 (diff)
downloadneovim-config-ef44657937474145403c2b441b862035914d6a44.tar.gz
neovim-config-ef44657937474145403c2b441b862035914d6a44.tar.bz2
neovim-config-ef44657937474145403c2b441b862035914d6a44.zip
Snippets
Diffstat (limited to 'Snippets/tex/environments.lua')
-rw-r--r--Snippets/tex/environments.lua48
1 files changed, 0 insertions, 48 deletions
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 }
- ),
-}