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/chemistry.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/chemistry.lua')
| -rw-r--r-- | lua/Snippets/tex/chemistry.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lua/Snippets/tex/chemistry.lua b/lua/Snippets/tex/chemistry.lua index 5c4742c..ee73154 100644 --- a/lua/Snippets/tex/chemistry.lua +++ b/lua/Snippets/tex/chemistry.lua @@ -2,9 +2,9 @@ local tex = require('Snippets.luasniphelperslatex') local helper = require('Snippets.luasniphelpers') return { - s({ trig = ',,', snippetType = 'autosnippet' }, + s({ trig = 'chg', snippetType = 'autosnippet' }, fmta( - '\\ch{<>->>[<>][<>]<>}\\par', + '\\ch{ <> ->>[ <> ][ <> ] <> }\\par', { i(1), i(2), @@ -13,4 +13,13 @@ return { } ) ), + + s({ trig = 'chs', snippetType = 'autosnippet' }, + fmta( + '\\ch{ <> }', + { + i(1), + } + ) + ), } |
