summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/postfix.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/postfix.lua')
-rw-r--r--lua/Snippets/tex/postfix.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/lua/Snippets/tex/postfix.lua b/lua/Snippets/tex/postfix.lua
new file mode 100644
index 0000000..6cc071e
--- /dev/null
+++ b/lua/Snippets/tex/postfix.lua
@@ -0,0 +1,33 @@
+local helper = require('Snippets.luasniphelpers')
+
+return {
+
+ s({ trig = 'bgn', snippetType = 'autosnippet' },
+ fmta(
+ [[
+\lstinputlisting[
+ language = <>,
+ firstline = <>,
+ caption = {
+ <>
+ },
+]{<>}
+]],
+ {
+ i(1),
+ i(2),
+ i(3),
+ i(4),
+ }
+ ),
+ { condition = helper.line_begin }
+ ),
+
+ s({ trig = 'pbl', snippetType = 'autosnippet' },
+ {
+ t('\\printbibliography[heading=none]')
+ },
+ { condition = helper.line_begin }
+ ),
+
+}