summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/greek.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 /lua/Snippets/tex/greek.lua
parent063c2d97218cdabe0634054a8038cd6b5c9a9a12 (diff)
downloadneovim-config-ef44657937474145403c2b441b862035914d6a44.tar.gz
neovim-config-ef44657937474145403c2b441b862035914d6a44.tar.bz2
neovim-config-ef44657937474145403c2b441b862035914d6a44.zip
Snippets
Diffstat (limited to 'lua/Snippets/tex/greek.lua')
-rw-r--r--lua/Snippets/tex/greek.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/lua/Snippets/tex/greek.lua b/lua/Snippets/tex/greek.lua
new file mode 100644
index 0000000..f47cdac
--- /dev/null
+++ b/lua/Snippets/tex/greek.lua
@@ -0,0 +1,17 @@
+local tex = require('Snippets.luasniphelperslatex')
+local helper = require('Snippets.luasniphelpers')
+
+return {
+ s({ trig = "pi", snippetType = "autosnippet" },
+ {
+ t("\\pi"),
+ },
+ { condition = tex.in_mathzone }
+ ),
+ s({ trig = "0eps", snippetType = "autosnippet" },
+ {
+ t("\\epsilon_0"),
+ },
+ { condition = tex.in_mathzone }
+ ),
+}