From 5ccdf56f6ffd40e0d3a4ad5416d0fbf02f6c71a0 Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:05:21 +0100 Subject: [PATCH] feat(snip): improve lim/-inf/-sup usability --- lua/typstar/snippets/math.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index 69fdb81..9470950 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -83,8 +83,8 @@ return { snip('osm', 'sum_Omega', {}, math), snip('dsm', 'sum_(<>)', { i(1, 'I') }, math), - snip('lm', 'lim <>', { i(1, 'a_n') }, math), - snip('lim', 'lim_(<> ->> <>) <>', { i(1, 'n'), i(2, 'oo'), i(3, 'a_n') }, math), - snip('lim (sup|inf)', 'lim<> <>', { cap(1), i(1, 'a_n') }, math), - snip('lim(_.*-.*) (sup|inf)', 'lim<><> <>', { cap(2), cap(1), i(1, 'a_n') }, math), + snip('lm', 'lim ', {}, math), + snip('lim', 'lim_(<> ->> <>) ', { i(1, 'n'), i(2, 'oo') }, math), + snip('lim (sup|inf)', 'lim<> ', { cap(1) }, math), + snip('lim(_\\(\\s?\\w+\\s?->\\s?\\w+\\s?\\)) (sup|inf)', 'lim<><> ', { cap(2), cap(1) }, math), }