add: nvim: math snippet

This commit is contained in:
qwjyh 2023-12-15 17:07:04 +09:00
parent cd6cc2b21f
commit 56a5ab4dbb

View file

@ -326,14 +326,18 @@ return {
{trig = ";;", show_condition = isinmath}, {trig = ";;", show_condition = isinmath},
{t("\\frac{"), i(1), t("}{"), i(2), t("}")} {t("\\frac{"), i(1), t("}{"), i(2), t("}")}
), ),
s( s( -- doesn't work
{trig = ";%", show_condition = isinmath}, {trig = ";%", show_condition = isinmath},
{t("\\frac{"), i(1), t("}{"), i(2), t("}")} {t("\\frac{"), i(1), t("}{"), i(2), t("}")}
), ),
s( s( -- doesn't work
{trig = ";/", show_condition = isinmath}, {trig = ";/", show_condition = isinmath},
{t("\\frac{"), i(1), t("}{"), i(2), t("}")} {t("\\frac{"), i(1), t("}{"), i(2), t("}")}
), ),
s(
{trig = ";ff", show_condition = isinmath},
{t("\\frac{"), i(1), t("}{"), i(2), t("}")}
),
s( s(
{trig = ";2", show_condition = isinmath}, {trig = ";2", show_condition = isinmath},
{t("\\sqrt{"), i(1), t("}")} {t("\\sqrt{"), i(1), t("}")}
@ -346,6 +350,14 @@ return {
{trig = ";.", show_condition = isinmath}, {trig = ";.", show_condition = isinmath},
t("\\cdot") t("\\cdot")
), ),
s(
{trig = ";l.", show_condition = isinmath},
t("\\ldots")
),
s(
{trig = ";v.", show_condition = isinmath},
t("\\vdots")
),
s( s(
{trig = ";8", show_condition = isinmath}, {trig = ";8", show_condition = isinmath},
t("\\infty") t("\\infty")