From bfc2fd103dc0f0f7a82e1fb5a57ec8d7b055bcbf Mon Sep 17 00:00:00 2001 From: arne314 <73391160+arne314@users.noreply.github.com> Date: Sun, 12 Jan 2025 17:34:39 +0100 Subject: [PATCH] minor(snip): space in set and ak/sk --- lua/typstar/snippets/letters.lua | 2 +- lua/typstar/snippets/math.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/typstar/snippets/letters.lua b/lua/typstar/snippets/letters.lua index 9b0513b..6cc6257 100644 --- a/lua/typstar/snippets/letters.lua +++ b/lua/typstar/snippets/letters.lua @@ -38,7 +38,7 @@ local greek_letters_map = { local greek_keys = {} local greek_letters_set = {} local common_indices = { '\\d+', '[i-n]' } -local index_conflicts = { 'in', 'ln', 'pi', 'xi', 'ak', 'sk' } +local index_conflicts = { 'in', 'ln', 'pi', 'xi' } local index_conflicts_set = {} local trigger_greek = '' local trigger_index_pre = '' diff --git a/lua/typstar/snippets/math.lua b/lua/typstar/snippets/math.lua index b33c06e..69fdb81 100644 --- a/lua/typstar/snippets/math.lua +++ b/lua/typstar/snippets/math.lua @@ -34,8 +34,8 @@ return { snip('ge', '>>= ', {}, math), -- operators - snip('ak([^k])', '+<>', { cap(1) }, math, 100, false), - snip('sk([^k])', '-<>', { cap(1) }, math, 100, false), + snip('ak([^k ])', '+ <>', { cap(1) }, math, 100, false), + snip('sk([^k ])', '- <>', { cap(1) }, math, 100, false), snip('oak', 'plus.circle ', {}, math, 1100), snip('bak', 'plus.square ', {}, math, 1100), snip('mak', 'plus.minus ', {}, math, 1100), @@ -45,7 +45,7 @@ return { -- sets -- 'st' to '{<>} in ./visual.lua - snip('set', '{<>|<>}', { i(1), i(2) }, math), + snip('set', '{<> | <>}', { i(1), i(2) }, math), snip('es', 'emptyset ', {}, math), snip('ses', '{emptyset} ', {}, math), snip('sp', 'supset ', {}, math),