From e711158bb790bdcb6634df9521c880e9eb0c1d6b Mon Sep 17 00:00:00 2001 From: Nanderty Date: Sun, 24 Nov 2024 16:45:51 +0100 Subject: Snippet improvements --- lua/Snippets/tex/tables.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'lua/Snippets/tex/tables.lua') diff --git a/lua/Snippets/tex/tables.lua b/lua/Snippets/tex/tables.lua index fb768f7..72bfd9f 100644 --- a/lua/Snippets/tex/tables.lua +++ b/lua/Snippets/tex/tables.lua @@ -48,4 +48,34 @@ return { { condition = helper.line_begin } ), + s({ trig = "mcl", snippetType = "autosnippet" }, + fmta( + '\\multicolumn{<>}{<>}{<>}', + { + i(1), + i(2), + i(3), + } + ), + { condition = tex.in_table } + ), + + s({ trig = "cln", snippetType = "autosnippet" }, + fmta( + '\\cline{<>-<>}', + { + i(1), + i(2), + } + ), + { condition = tex.in_table } + ), + + s({ trig = 'hln', snippetType = 'autosnippet' }, + { + t('\\hline'), + }, + { condition = tex.in_table } + ), + } -- cgit v1.2.3