diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index ec01aac..9473880 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -20,6 +20,8 @@ return { -- boolean logic snip('no', 'not ', {}, math), + snip('ip', '==>> ', {}, math), + snip('ib', '<<== ', {}, math), -- relations snip('el', '= ', {}, math), @@ -41,7 +43,8 @@ return { snip('bxx', 'times.square ', {}, math), -- sets - snip('set', '{<>}', { i(1) }, math), + -- 'st' to '{<>} in ./visual.lua + snip('set', '{<>|<>}', { i(1), i(2) }, math), snip('es', 'emptyset ', {}, math), snip('ses', '{emptyset} ', {}, math), snip('sp', 'supset ', {}, math), diff --git a/lua/typstar/snippets/visual.lua b/lua/typstar/snippets/visual.lua index d821bcf..e4c51af 100644 --- a/lua/typstar/snippets/visual.lua +++ b/lua/typstar/snippets/visual.lua @@ -15,6 +15,7 @@ local operations = { -- first boolean: existing brack { 'vi', '1/', '', true, false }, { 'bb', '(', ')', true, false }, -- add round brackets { 'sq', '[', ']', true, false }, -- add square brackets + { 'st', '{', '}', true, false }, -- add curly brackets { 'bB', '(', ')', false, false }, -- replace with round brackets { 'sQ', '[', ']', false, false }, -- replace with square brackets { 'BB', '', '', false, false }, -- remove brackets