diff options
| author | Nanderty <psopka@sopka.ch> | 2024-11-24 16:45:51 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2024-11-24 16:45:51 +0100 |
| commit | e711158bb790bdcb6634df9521c880e9eb0c1d6b (patch) | |
| tree | 92af30711edcd92ec15f937ea9a1a53ded741966 /lua/Snippets/tex/tables.lua | |
| parent | 80af2a08c9c3bfad90cdcfd916c76ec32119e187 (diff) | |
| download | neovim-config-e711158bb790bdcb6634df9521c880e9eb0c1d6b.tar.gz neovim-config-e711158bb790bdcb6634df9521c880e9eb0c1d6b.tar.bz2 neovim-config-e711158bb790bdcb6634df9521c880e9eb0c1d6b.zip | |
Snippet improvements
Diffstat (limited to 'lua/Snippets/tex/tables.lua')
| -rw-r--r-- | lua/Snippets/tex/tables.lua | 30 |
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 } + ), + } |
