diff --git a/lua/typstar/snippets/markup.lua b/lua/typstar/snippets/markup.lua index c0faf99..ba67132 100644 --- a/lua/typstar/snippets/markup.lua +++ b/lua/typstar/snippets/markup.lua @@ -19,6 +19,8 @@ local ctheorems = { { 'def', 'definition' }, { 'exa', 'example' }, { 'rem', 'remark' }, + { 'nte', 'note' }, + { 'eri', 'experiment' }, } local wrappings = { diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index 5799f07..4df7a30 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -43,6 +43,7 @@ return { snip('oxx', 'times.circle ', {}, math), snip('bxx', 'times.square ', {}, math), snip('ff', '(<>) / (<>) <>', { i(1, 'a'), i(2, 'b'), i(3) }, math), + snip('nab', 'arrow(nabla) ', {}, math), -- exponents snip('iv', '^(-1) ', {}, math, 500, { wordTrig = false, blacklist = { 'equiv' } }), @@ -85,6 +86,7 @@ return { snip('DDX', '(diff <>) / (diff <>) ', { i(1, 'f'), i(2, 'x') }, math), snip('part', 'partial ', {}, math, 1600), snip('it', 'integral ', {}, math, 900), + snip('iot', 'integral.vol ', {}, math, 900), snip('int', 'integral_(<>)^(<>) ', { i(1, 'a'), i(2, 'b') }, math), snip('oit', 'integral_Omega ', {}, math), snip('dit', 'integral_(<>) ', { i(1, 'Omega') }, math), diff --git a/lua/typstar/snippets/visual.lua b/lua/typstar/snippets/visual.lua index f5644f4..01e2b8b 100644 --- a/lua/typstar/snippets/visual.lua +++ b/lua/typstar/snippets/visual.lua @@ -35,8 +35,10 @@ local operations = { -- first boolean: existing brackets should be kept; second { 'ub', 'underbrace', '', true, true }, { 'ob', 'overbrace', '', true, true }, { 'ht', 'hat', '', true, true }, + { 'ar', 'arrow', '', true, true }, { 'br', 'macron', '', true, true }, { 'dt', 'dot', '', true, true }, + { 'dou', 'dot.double', '', true, true }, { 'ci', 'circle', '', true, true }, { 'td', 'tilde', '', true, true }, { 'nr', 'norm', '', true, true },