Add superscripts and additional subscripts.

main
Joshua Potter 2024-01-25 13:32:46 -07:00
parent c64e8054f1
commit a112360fb0
1 changed files with 62 additions and 0 deletions

View File

@ -4,7 +4,69 @@ local s = ls.snippet
local t = ls.text_node local t = ls.text_node
return { return {
-- Superscripts
s(
{ trig = [[^+]], wordTrig = false },
t('')
),
s(
{ trig = [[^-]], wordTrig = false },
t('')
),
s(
{ trig = [[^0]], wordTrig = false },
t('')
),
s(
{ trig = [[^1]], wordTrig = false },
t('¹')
),
s(
{ trig = [[^2]], wordTrig = false },
t('²')
),
s(
{ trig = [[^3]], wordTrig = false },
t('³')
),
s(
{ trig = [[^4]], wordTrig = false },
t('')
),
s(
{ trig = [[^5]], wordTrig = false },
t('')
),
s(
{ trig = [[^6]], wordTrig = false },
t('')
),
s(
{ trig = [[^7]], wordTrig = false },
t('')
),
s(
{ trig = [[^8]], wordTrig = false },
t('')
),
s(
{ trig = [[^9]], wordTrig = false },
t('')
),
-- Subscripts -- Subscripts
s(
{ trig = [[_+]], wordTrig = false },
t('')
),
s(
{ trig = [[_-]], wordTrig = false },
t('')
),
s(
{ trig = [[_0]], wordTrig = false },
t('')
),
s( s(
{ trig = [[_1]], wordTrig = false }, { trig = [[_1]], wordTrig = false },
t('') t('')