From 3c6845fdbc5f3448d2f99e444fed1c8758845866 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Thu, 12 Oct 2023 22:25:33 +0200 Subject: Snippet improvements chemistry --- lua/Snippets/tex/environments.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lua/Snippets/tex/environments.lua') diff --git a/lua/Snippets/tex/environments.lua b/lua/Snippets/tex/environments.lua index 46e5ee5..1fa0301 100644 --- a/lua/Snippets/tex/environments.lua +++ b/lua/Snippets/tex/environments.lua @@ -32,4 +32,21 @@ return { ), { condition = helper.line_begin } ), + + s({ trig = 'mnp', snippetType = 'autosnippet' }, + fmta( + [[ +\begin{minipage}[<>]{<>\textwidth} + <> +\end{minipage} +]], + { + i(1), + i(2), + i(3), + } + ), + { condition = helper.line_begin } + ), + } -- cgit v1.2.3