minor: update snippets

This commit is contained in:
arne314
2024-12-22 18:58:17 +01:00
parent 50d892c6b2
commit ca69464e5a
2 changed files with 4 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ local greek_letters_map = {
local greek_letters = {}
local greek_keys = {}
local common_indices = { '\\d+', '[i-n]' }
local index_conflicts = { 'in', 'pi', 'xi' }
local index_conflicts = { 'in', 'ln', 'pi', 'xi' }
local index_conflicts_set = {}
local trigger_greek = ''
local trigger_index_pre = ''

View File

@@ -31,8 +31,8 @@ return {
snip('ge', '>>= ', {}, math),
-- operators
snip('(.*)sk', '<>+', { cap(1) }, math),
snip('(.*)ak', '<>-', { cap(1) }, math),
snip('ak([^k])', '+<>', { cap(1) }, math, 500, false),
snip('sk([^k])', '-<>', { cap(1) }, math, 500, false),
snip('oak', 'plus.circle ', {}, math, 1100),
snip('bak', 'plus.square ', {}, math, 1100),
snip('mak', 'plus.minus ', {}, math, 1100),
@@ -59,6 +59,7 @@ return {
snip('mt', '|->> ', {}, math),
snip('Oo', 'compose ', {}, math),
snip('iso', 'tilde.equiv ', {}, math),
snip('ep', 'exp(<>) ', { i(1, '1') }, math),
snip('rrn', 'RR^n ', {}, math),
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
snip('(.*)iv', '<>^(-1)', { cap(1) }, math),