summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex
diff options
context:
space:
mode:
authorNanderty <psopka@sopka.ch>2023-03-29 21:11:32 +0200
committerNanderty <psopka@sopka.ch>2023-03-29 21:11:32 +0200
commitc456976987b05a5add43d6fe8379dcec4cbde2de (patch)
treed5c3cf4d9cfa549c8c3fb8b3e0d6132e05faa433 /lua/Snippets/tex
parent4cf61987eebf88f3878e1b979d83d14de730a8db (diff)
downloadneovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.tar.gz
neovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.tar.bz2
neovim-config-c456976987b05a5add43d6fe8379dcec4cbde2de.zip
Snippet, fixes, additions
Diffstat (limited to 'lua/Snippets/tex')
-rw-r--r--lua/Snippets/tex/environments.lua4
-rw-r--r--lua/Snippets/tex/math.lua17
-rw-r--r--lua/Snippets/tex/symbols.lua (renamed from lua/Snippets/tex/greek.lua)6
3 files changed, 25 insertions, 2 deletions
diff --git a/lua/Snippets/tex/environments.lua b/lua/Snippets/tex/environments.lua
index fd19387..c4bb38a 100644
--- a/lua/Snippets/tex/environments.lua
+++ b/lua/Snippets/tex/environments.lua
@@ -22,9 +22,9 @@ return {
s({ trig = 'enu', snippetType = 'autosnippet' },
fmta(
[[
-\begin{enumerate*}
+\begin{enumerate}
\item <>
-\end{enumerate*}
+\end{enumerate}
]],
{
i(1),
diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua
index 670ed80..9d50cb0 100644
--- a/lua/Snippets/tex/math.lua
+++ b/lua/Snippets/tex/math.lua
@@ -22,8 +22,25 @@ return {
),
{ condition = tex.in_mathzone }
),
+ s({ trig = "tex", snippetType = "autosnippet" },
+ fmta(
+ '\\text{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = tex.in_mathzone }
+ ),
s({ trig = 'df', snippetType = 'autosnippet' },
{ t('\\diff ') },
{ condition = tex.in_mathzone }
),
+ s({ trig = 'ple', snippetType = 'autosnippet' },
+ { t('\\left(') },
+ { condition = tex.in_mathzone }
+ ),
+ s({ trig = 'pri', snippetType = 'autosnippet' },
+ { t('\\right)') },
+ { condition = tex.in_mathzone }
+ ),
}
diff --git a/lua/Snippets/tex/greek.lua b/lua/Snippets/tex/symbols.lua
index f47cdac..684d9ed 100644
--- a/lua/Snippets/tex/greek.lua
+++ b/lua/Snippets/tex/symbols.lua
@@ -14,4 +14,10 @@ return {
},
{ condition = tex.in_mathzone }
),
+ s({ trig = "app", snippetType = "autosnippet" },
+ {
+ t("\\approx"),
+ },
+ { condition = tex.in_mathzone }
+ ),
}