mirror of
https://github.com/Ascyii/typstar.git
synced 2026-01-01 05:24:24 -05:00
minor: update snippets
This commit is contained in:
@@ -36,7 +36,7 @@ local greek_letters_map = {
|
|||||||
local greek_letters = {}
|
local greek_letters = {}
|
||||||
local greek_keys = {}
|
local greek_keys = {}
|
||||||
local common_indices = { '\\d+', '[i-n]' }
|
local common_indices = { '\\d+', '[i-n]' }
|
||||||
local index_conflicts = { 'in', 'pi', 'xi' }
|
local index_conflicts = { 'in', 'ln', 'pi', 'xi' }
|
||||||
local index_conflicts_set = {}
|
local index_conflicts_set = {}
|
||||||
local trigger_greek = ''
|
local trigger_greek = ''
|
||||||
local trigger_index_pre = ''
|
local trigger_index_pre = ''
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ return {
|
|||||||
snip('ge', '>>= ', {}, math),
|
snip('ge', '>>= ', {}, math),
|
||||||
|
|
||||||
-- operators
|
-- operators
|
||||||
snip('(.*)sk', '<>+', { cap(1) }, math),
|
snip('ak([^k])', '+<>', { cap(1) }, math, 500, false),
|
||||||
snip('(.*)ak', '<>-', { cap(1) }, math),
|
snip('sk([^k])', '-<>', { cap(1) }, math, 500, false),
|
||||||
snip('oak', 'plus.circle ', {}, math, 1100),
|
snip('oak', 'plus.circle ', {}, math, 1100),
|
||||||
snip('bak', 'plus.square ', {}, math, 1100),
|
snip('bak', 'plus.square ', {}, math, 1100),
|
||||||
snip('mak', 'plus.minus ', {}, math, 1100),
|
snip('mak', 'plus.minus ', {}, math, 1100),
|
||||||
@@ -59,6 +59,7 @@ return {
|
|||||||
snip('mt', '|->> ', {}, math),
|
snip('mt', '|->> ', {}, math),
|
||||||
snip('Oo', 'compose ', {}, math),
|
snip('Oo', 'compose ', {}, math),
|
||||||
snip('iso', 'tilde.equiv ', {}, math),
|
snip('iso', 'tilde.equiv ', {}, math),
|
||||||
|
snip('ep', 'exp(<>) ', { i(1, '1') }, math),
|
||||||
snip('rrn', 'RR^n ', {}, math),
|
snip('rrn', 'RR^n ', {}, math),
|
||||||
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
|
snip('cc', 'cases(\n\t<>\n)\\', { i(1, '1') }, math),
|
||||||
snip('(.*)iv', '<>^(-1)', { cap(1) }, math),
|
snip('(.*)iv', '<>^(-1)', { cap(1) }, math),
|
||||||
|
|||||||
Reference in New Issue
Block a user