diff options
| author | Nanderty <psopka@sopka.ch> | 2023-04-04 21:55:44 +0200 |
|---|---|---|
| committer | Nanderty <psopka@sopka.ch> | 2023-04-04 21:55:44 +0200 |
| commit | 4251a22f679ddf22ac40cb83ac618d367e57e762 (patch) | |
| tree | 5b94c9853256ebf16862b9fbcc77b98f1009d251 /lua/Snippets/tex | |
| parent | 9a322cf45e35aa7ed4b09604204ff66e6e906d0f (diff) | |
| download | neovim-config-4251a22f679ddf22ac40cb83ac618d367e57e762.tar.gz neovim-config-4251a22f679ddf22ac40cb83ac618d367e57e762.tar.bz2 neovim-config-4251a22f679ddf22ac40cb83ac618d367e57e762.zip | |
snippets
Diffstat (limited to 'lua/Snippets/tex')
| -rw-r--r-- | lua/Snippets/tex/general.lua | 6 | ||||
| -rw-r--r-- | lua/Snippets/tex/math.lua | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lua/Snippets/tex/general.lua b/lua/Snippets/tex/general.lua index 0c0b7bf..78c2a2c 100644 --- a/lua/Snippets/tex/general.lua +++ b/lua/Snippets/tex/general.lua @@ -2,6 +2,12 @@ local tex = require('Snippets.luasniphelperslatex') local helper = require('Snippets.luasniphelpers') return { +s({ trig = 'new', snippetType = 'autosnippet' }, + { + t('\\newpage'), + }, + { condition = helper.line_begin } + ), s({ trig = 'sec', snippetType = 'autosnippet' }, fmta( '\\section*{<>}', diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua index 9d50cb0..08a3bfe 100644 --- a/lua/Snippets/tex/math.lua +++ b/lua/Snippets/tex/math.lua @@ -35,11 +35,11 @@ return { { t('\\diff ') }, { condition = tex.in_mathzone } ), - s({ trig = 'ple', snippetType = 'autosnippet' }, + s({ trig = 'ble', snippetType = 'autosnippet' }, { t('\\left(') }, { condition = tex.in_mathzone } ), - s({ trig = 'pri', snippetType = 'autosnippet' }, + s({ trig = 'bri', snippetType = 'autosnippet' }, { t('\\right)') }, { condition = tex.in_mathzone } ), |
