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