From 28046452a7d1e3346eaf0880da2493eb9a82f745 Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Sun, 27 Apr 2025 00:10:08 +0200 Subject: [PATCH] minor(snip): add `fox` for `f(x)` and variations --- lua/typstar/snippets/letters.lua | 2 +- lua/typstar/snippets/math.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/typstar/snippets/letters.lua b/lua/typstar/snippets/letters.lua index e079b8b..d3f42df 100644 --- a/lua/typstar/snippets/letters.lua +++ b/lua/typstar/snippets/letters.lua @@ -134,5 +134,5 @@ return { snip('(' .. trigger_index_pre .. ') ot(\\w+) ', '<> ', { d(1, get_series) }, math, 1000, true, 13), -- a_1, a_2, ... a_j or a_1, a_2, a_2, a_3, a_4, a_5 -- misc - snip('(' .. trigger_index_pre .. ')bl', 'B_<> (<>)', { cap(1), i(1, 'x_0') }, math), + snip('(' .. trigger_index_pre .. ')bl', 'B_<> (<>) ', { cap(1), i(1, 'x_0') }, math, 100, true), } diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index f3c578d..07054ac 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -19,7 +19,7 @@ return { snip('een', 'exists epsilon>>0 ', {}, math), -- boolean logic - snip('no', 'not ', {}, math), + snip('not', 'not ', {}, math), snip('ip', '==>> ', {}, math), snip('ib', '<<== ', {}, math), snip('iff', '<<==>> ', {}, math), @@ -73,6 +73,7 @@ return { snip('Oo', 'compose ', {}, math), snip('iso', 'tilde.equiv ', {}, math), snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math), + snip('([A-Za-z])o([A-Za-z0-9])', '<>(<>) ', { cap(1), cap(2) }, math, 100, true, 3), snip('(K|M|N|Q|R|S|Z)([\\dn]) ', '<><>^<> ', { cap(1), cap(1), cap(2) }, math), snip('dx', 'dif / (dif <>) ', { i(1, 'x') }, math, 900),