From 7d2b3e852db211fb1ecd8c3876c22d44c003a547 Mon Sep 17 00:00:00 2001 From: Linus Date: Thu, 9 Jan 2025 21:53:05 +0100 Subject: [PATCH] feat(snip): bare integral (#5) * feat!: `it` to `integral`, `int` for old behaviour * fix: formatting errors --------- Co-authored-by: arne314 <73391160+arne314@users.noreply.github.com> --- lua/typstar/snippets/math.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index b661467..931c32a 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -71,9 +71,10 @@ return { snip('(.*)kk', '<>^(<>)', { cap(1), i(1, 'n') }, math), snip('ddx', '(d <>)(d <>)', { i(1, 'f'), i(2, 'x') }, math), - snip('it', 'integral_(<>)^(<>)', { i(1, 'a'), i(2, 'b') }, math), - snip('oit', 'integral_(Omega}', {}, math), - snip('dit', 'integral_{<>}', { i(1, 'Omega') }, math), + snip('it', 'integral', {}, math), + snip('int', 'integral_(<>)^(<>)', { i(1, 'a'), i(2, 'b') }, math), + snip('oit', 'integral_Omega', {}, math), + snip('dit', 'integral_(<>)', { i(1, 'Omega') }, math), snip('sm', 'sum ', {}, math), snip('sum', 'sum_(<>)^(<>)', { i(1, 'i=0'), i(2, 'oo') }, math),