summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/symbols.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/symbols.lua')
-rw-r--r--lua/Snippets/tex/symbols.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/Snippets/tex/symbols.lua b/lua/Snippets/tex/symbols.lua
new file mode 100644
index 0000000..684d9ed
--- /dev/null
+++ b/lua/Snippets/tex/symbols.lua
@@ -0,0 +1,23 @@
+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 }
+ ),
+ s({ trig = "app", snippetType = "autosnippet" },
+ {
+ t("\\approx"),
+ },
+ { condition = tex.in_mathzone }
+ ),
+}