From f19424177c106b50b55939641826da43f554b830 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 1 Oct 2024 20:30:45 +0200 Subject: imporove LaTeX snippets --- lua/Snippets/tex/postfix.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua/Snippets/tex/postfix.lua (limited to 'lua/Snippets/tex/postfix.lua') 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 } + ), + +} -- cgit v1.2.3