summaryrefslogtreecommitdiffstats
path: root/Snippets
diff options
context:
space:
mode:
Diffstat (limited to 'Snippets')
-rw-r--r--Snippets/tex/environments.lua48
-rw-r--r--Snippets/tex/general.lua11
-rw-r--r--Snippets/tex/greek.lua18
-rw-r--r--Snippets/tex/math.lua30
4 files changed, 0 insertions, 107 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 }
- ),
-}
diff --git a/Snippets/tex/general.lua b/Snippets/tex/general.lua
deleted file mode 100644
index 73255da..0000000
--- a/Snippets/tex/general.lua
+++ /dev/null
@@ -1,11 +0,0 @@
-return {
- s({ trig = "sec", snippetType = "autosnippet" },
- fmta(
- '\\section*{<>}',
- {
- i(1),
- }
- ),
- { condition = line_begin }
- ),
-}
diff --git a/Snippets/tex/greek.lua b/Snippets/tex/greek.lua
deleted file mode 100644
index ebcabfe..0000000
--- a/Snippets/tex/greek.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local in_mathzone = function()
- return vim.fn['vimtex#syntax#in_mathzone']() == 1
-end
-
-return {
- s({ trig = "pi", snippetType = "autosnippet" },
- {
- t("\\pi"),
- },
- { condition = in_mathzone }
- ),
- s({ trig = "0eps", snippetType = "autosnippet" },
- {
- t("\\epsilon_0"),
- },
- { condition = in_mathzone }
- ),
-}
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 }
- ),
-}