diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index 1870d6d..f1a97f4 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -36,12 +36,12 @@ return { -- operators snip('mak', 'plus.minus ', {}, math), - snip('oak', 'plus.circle ', {}, math), + snip('oak', 'plus.o ', {}, math), snip('bak', 'plus.square ', {}, math), - snip('osk', 'minus.circle ', {}, math), + snip('osk', 'minus.o ', {}, math), snip('bsk', 'minus.square ', {}, math), snip('xx', 'times ', {}, math), - snip('oxx', 'times.circle ', {}, math), + snip('oxx', 'times.o ', {}, math), snip('bxx', 'times.square ', {}, math), snip('ff', '(<>) / (<>) <>', { i(1, 'a'), i(2, 'b'), i(3) }, math), @@ -78,7 +78,7 @@ return { snip('iso', 'tilde.equiv ', {}, math), snip('nab', 'nabla ', {}, math), snip('ep', 'exp(<>) ', { i(1, '1') }, math), - snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math), + snip('ccs', 'cases(\n\t<>,\n)', { i(1, '1') }, math), snip('([A-Za-z])o([A-Za-z0-9]) ', '<>(<>) ', { cap(1), cap(2) }, math, 100, { maxTrigLength = 4, blacklist = { 'bot ', 'cos ', 'cot ', 'dot ', 'log ', 'mod ', 'not ', 'top ', 'won ', 'xor ' }, @@ -88,8 +88,8 @@ return { -- derivatives snip('dx', 'dif / (dif <>) ', { i(1, 'x') }, math), snip('ddx', '(dif <>) / (dif <>) ', { i(1, 'f'), i(2, 'x') }, math), - snip('DX', 'diff / (diff <>) ', { i(1, 'x') }, math), - snip('DDX', '(diff <>) / (diff <>) ', { i(1, 'f'), i(2, 'x') }, math), + snip('DX', 'partial / (partial <>) ', { i(1, 'x') }, math), + snip('DDX', '(partial <>) / (partial <>) ', { i(1, 'f'), i(2, 'x') }, math), snip('part', 'partial ', {}, math, 1600), -- integrals diff --git a/lua/typstar/snippets/visual.lua b/lua/typstar/snippets/visual.lua index 8017891..a4b6655 100644 --- a/lua/typstar/snippets/visual.lua +++ b/lua/typstar/snippets/visual.lua @@ -28,7 +28,7 @@ local operations = { -- first boolean: existing brackets should be kept; second { 'sQ', '[', ']', false, false }, -- replace with square brackets { 'BB', '', '', false, false }, -- remove brackets { 'ss', '"', '"', false, false }, - { 'agl', 'lr(angle.l ', ' angle.r)', false, false }, + { 'chv', 'lr(chevron.l ', ' chevron.r)', false, false }, { 'abs', 'abs', '', true, true }, { 'ul', 'underline', '', true, true }, { 'ol', 'overline', '', true, true },