diff options
| author | Nanderty <psopka@sopka.ch> | 2023-03-28 11:44:33 +0200 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-03-28 11:44:33 +0200 |
| commit | 4cf61987eebf88f3878e1b979d83d14de730a8db (patch) | |
| tree | c8596c84707b193c9b8ac15efbf9633c2daccbcd /lua/Snippets | |
| parent | ef44657937474145403c2b441b862035914d6a44 (diff) | |
| download | neovim-config-4cf61987eebf88f3878e1b979d83d14de730a8db.tar.gz neovim-config-4cf61987eebf88f3878e1b979d83d14de730a8db.tar.bz2 neovim-config-4cf61987eebf88f3878e1b979d83d14de730a8db.zip | |
more Snippets
Diffstat (limited to 'lua/Snippets')
| -rw-r--r-- | lua/Snippets/tex/chemistry.lua | 16 | ||||
| -rw-r--r-- | lua/Snippets/tex/general.lua | 21 |
2 files changed, 36 insertions, 1 deletions
diff --git a/lua/Snippets/tex/chemistry.lua b/lua/Snippets/tex/chemistry.lua new file mode 100644 index 0000000..5c4742c --- /dev/null +++ b/lua/Snippets/tex/chemistry.lua @@ -0,0 +1,16 @@ +local tex = require('Snippets.luasniphelperslatex') +local helper = require('Snippets.luasniphelpers') + +return { + s({ trig = ',,', snippetType = 'autosnippet' }, + fmta( + '\\ch{<>->>[<>][<>]<>}\\par', + { + i(1), + i(2), + i(3), + i(4), + } + ) + ), +} diff --git a/lua/Snippets/tex/general.lua b/lua/Snippets/tex/general.lua index ebe76fe..9359e67 100644 --- a/lua/Snippets/tex/general.lua +++ b/lua/Snippets/tex/general.lua @@ -9,7 +9,7 @@ return { i(1), } ), - { condition = line_begin } + { condition = helper.line_begin } ), s({ trig = "hh", snippetType = "autosnippet" }, fmta( @@ -20,4 +20,23 @@ return { } ) ), + s({ trig = "upa", snippetType = "autosnippet" }, + fmta( + '\\usepackage{<>}', + { + i(1), + } + ), + { condition = helper.line_begin } + ), + s({ trig = "opa", snippetType = "autosnippet" }, + fmta( + '\\usepackage[<>]{<>}', + { + i(1), + i(2), + } + ), + { condition = helper.line_begin } + ), } |
