diff options
| author | Nanderty <psopka@sopka.ch> | 2023-04-22 12:10:01 +0200 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-04-22 12:10:01 +0200 |
| commit | d37f266e7719a67faa99b3ec62e9a51f0033cfc2 (patch) | |
| tree | 7e667b5462d88ae9a593378d3a919349c027153b /lua/Snippets/tex/general.lua | |
| parent | 9b3ab411798c36f4402ecb34eb77a0ee86a03447 (diff) | |
| download | neovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.tar.gz neovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.tar.bz2 neovim-config-d37f266e7719a67faa99b3ec62e9a51f0033cfc2.zip | |
starter verbesserungen
Diffstat (limited to 'lua/Snippets/tex/general.lua')
| -rw-r--r-- | lua/Snippets/tex/general.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lua/Snippets/tex/general.lua b/lua/Snippets/tex/general.lua index b0a7090..e5514ab 100644 --- a/lua/Snippets/tex/general.lua +++ b/lua/Snippets/tex/general.lua @@ -17,6 +17,24 @@ s({ trig = 'new', snippetType = 'autosnippet' }, ), { condition = helper.line_begin } ), + s({ trig = 'ssec', snippetType = 'autosnippet' }, + fmta( + '\\subsection*{<>}', + { + i(1), + } + ), + { condition = helper.line_begin } + ), + s({ trig = 'nsec', snippetType = 'autosnippet' }, + fmta( + '\\newpage\\section*{<>}', + { + i(1), + } + ), + { condition = helper.line_begin } + ), s({ trig = 'hh', snippetType = 'autosnippet' }, fmta( '\\SI{<>}{<>}', @@ -26,6 +44,26 @@ s({ trig = 'new', snippetType = 'autosnippet' }, } ) ), + s({ trig = 'bf', snippetType = 'autosnippet' }, + fmta( + '\\textbf{<>}', + { + i(1), + } + ) + ), + s({ trig = 'cite', snippetType = 'autosnippet' }, + fmta( + '\\supercite{<>}', + { + i(1), + } + ) + ), + s({ trig = 'ite', snippetType = 'autosnippet' }, + { t('\\item') }, + { condition = helper.line_begin } + ), s({ trig = 'upa', snippetType = 'autosnippet' }, fmta( '\\usepackage{<>}', |
