summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/praeamble.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/praeamble.lua')
-rw-r--r--lua/Snippets/tex/praeamble.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/Snippets/tex/praeamble.lua b/lua/Snippets/tex/praeamble.lua
new file mode 100644
index 0000000..e0daa28
--- /dev/null
+++ b/lua/Snippets/tex/praeamble.lua
@@ -0,0 +1,26 @@
+local tex = require('Snippets.luasniphelperslatex')
+local helper = require('Snippets.luasniphelpers')
+
+return {
+
+ s({ trig = 'upa', snippetType = 'autosnippet' },
+ fmta(
+ '\\usepackage{<>}',
+ {
+ i(1),
+ }
+ ),
+ { condition = helper.line_begin }
+ ),
+
+ s({ trig = 'opa', snippetType = 'autosnippet' },
+ fmta(
+ '\\usepackage[<>]{<>}',
+ {
+ i(1),
+ i(2),
+ }
+ ),
+ { condition = helper.line_begin }
+ ),
+}