summaryrefslogtreecommitdiffstats
path: root/lua/Snippets/tex/tables.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Snippets/tex/tables.lua')
-rw-r--r--lua/Snippets/tex/tables.lua30
1 files changed, 30 insertions, 0 deletions
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 }
+ ),
+
}