diff options
| author | Nanderty <psopka@sopka.ch> | 2025-03-12 22:09:18 +0100 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2025-03-12 22:09:24 +0100 |
| commit | 7aa66e33bc4b80dfe3e4094cc30bd393557c0376 (patch) | |
| tree | 99b81d4b8ab765c065d5b66f93b48586e6c2a08d /lua/Snippets/tex/chemistry.lua | |
| parent | 305866ed72129d23b1bb66af7bf8d46d8c1d9890 (diff) | |
| download | neovim-config-7aa66e33bc4b80dfe3e4094cc30bd393557c0376.tar.gz neovim-config-7aa66e33bc4b80dfe3e4094cc30bd393557c0376.tar.bz2 neovim-config-7aa66e33bc4b80dfe3e4094cc30bd393557c0376.zip | |
Snippet improvements
Diffstat (limited to 'lua/Snippets/tex/chemistry.lua')
| -rw-r--r-- | lua/Snippets/tex/chemistry.lua | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/lua/Snippets/tex/chemistry.lua b/lua/Snippets/tex/chemistry.lua index de28c96..69915a2 100644 --- a/lua/Snippets/tex/chemistry.lua +++ b/lua/Snippets/tex/chemistry.lua @@ -12,7 +12,7 @@ return { s({ trig = 'nvc', snippetType = 'autosnippet' }, { - t('\\invacuo '), + t('{\\invacuo} '), } ), @@ -113,4 +113,58 @@ return { ), { condition = tex.in_scheme } ), + + s({ trig = 'Slv', snippetType = 'autosnippet' }, + fmta( + '\\Solvent{<>}', + { + i(1), + } + ) + ), + + s({ trig = 'slv', snippetType = 'autosnippet' }, + fmta( + '\\solvent{<>}', + { + i(1), + } + ) + ), + + s({ trig = 'sls', snippetType = 'autosnippet' }, + fmta( + '\\solvents{<>}', + { + i(1), + } + ) + ), + + s({ trig = 'Rct', snippetType = 'autosnippet' }, + fmta( + '\\Reactant*{<>}', + { + i(1), + } + ) + ), + + s({ trig = 'rct', snippetType = 'autosnippet' }, + fmta( + '\\reactant*{<>}', + { + i(1), + } + ) + ), + + s({ trig = 'rcs', snippetType = 'autosnippet' }, + fmta( + '\\reactants*{<>}', + { + i(1), + } + ) + ), } |
