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), }