add: nvim: math snippet
This commit is contained in:
parent
cd6cc2b21f
commit
56a5ab4dbb
1 changed files with 14 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue