From 4251a22f679ddf22ac40cb83ac618d367e57e762 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 4 Apr 2023 21:55:44 +0200 Subject: snippets --- lua/Snippets/tex/general.lua | 6 ++++++ lua/Snippets/tex/math.lua | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lua/Snippets') 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 } ), -- cgit v1.2.3