Update
This commit is contained in:
@@ -83,22 +83,22 @@ return {
|
||||
}),
|
||||
{ condition = tex.in_mathzone }
|
||||
),
|
||||
s(
|
||||
{ trig = "%)(%a)", regTrig = true, wordTrig = false, snippetType = "autosnippet", priority = 2000 },
|
||||
fmta(") <>", {
|
||||
f(function(_, snip)
|
||||
return snip.captures[1]
|
||||
end),
|
||||
})
|
||||
),
|
||||
s(
|
||||
{ trig = "](%a)", regTrig = true, wordTrig = false, snippetType = "autosnippet", priority = 2000 },
|
||||
fmta("] <>", {
|
||||
f(function(_, snip)
|
||||
return snip.captures[1]
|
||||
end),
|
||||
})
|
||||
),
|
||||
-- s(
|
||||
-- { trig = "%)(%a)", regTrig = true, wordTrig = false, snippetType = "autosnippet", priority = 2000 },
|
||||
-- fmta(") <>", {
|
||||
-- f(function(_, snip)
|
||||
-- return snip.captures[1]
|
||||
-- end),
|
||||
-- })
|
||||
-- ),
|
||||
-- s(
|
||||
-- { trig = "](%a)", regTrig = true, wordTrig = false, snippetType = "autosnippet", priority = 2000 },
|
||||
-- fmta("] <>", {
|
||||
-- f(function(_, snip)
|
||||
-- return snip.captures[1]
|
||||
-- end),
|
||||
-- })
|
||||
-- ),
|
||||
s(
|
||||
{ trig = "lim", regTrig = true, wordTrig = false, snippetType = "autosnippet" },
|
||||
fmta("lim_(<>)", {
|
||||
|
||||
@@ -43,9 +43,9 @@ return {
|
||||
s({ trig = "eps", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("epsilon"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "vps", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("varepsilon"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
-- s({ trig = "vps", snippetType = "autosnippet", wordTrig = false }, {
|
||||
-- t("varepsilon"),
|
||||
-- }, { condition = tex.in_mathzone }),
|
||||
s({ trig = "Eps", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("Epsilon"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
@@ -148,12 +148,12 @@ return {
|
||||
s({ trig = "Phi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("Phi"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "vhi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("varphi"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "Vhi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("Varphi"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
-- s({ trig = "vhi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
-- t("varphi"),
|
||||
-- }, { condition = tex.in_mathzone }),
|
||||
-- s({ trig = "Vhi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
-- t("Varphi"),
|
||||
-- }, { condition = tex.in_mathzone }),
|
||||
s({ trig = "chi", snippetType = "autosnippet", wordTrig = false }, {
|
||||
t("chi"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
|
||||
@@ -39,8 +39,11 @@ return {
|
||||
s({ trig = "to", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("->"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
-- s({ trig = "==", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
-- t("&="),
|
||||
-- }, { condition = tex.in_mathzone }),
|
||||
s({ trig = "iff", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("iff"),
|
||||
t("<==>"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "notin", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("in.not"),
|
||||
@@ -118,7 +121,7 @@ return {
|
||||
t("subset"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "subset=", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("supset.eq"),
|
||||
t("subset.eq"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "sup", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("supset"),
|
||||
@@ -162,9 +165,6 @@ return {
|
||||
s({ trig = "hbar", wordTrig = false, snippetType = "autosnippet", priority = 1500 }, {
|
||||
t("hbar"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "ns", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("unlhd"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s({ trig = "eqv", wordTrig = false, snippetType = "autosnippet" }, {
|
||||
t("equiv"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
@@ -201,16 +201,16 @@ return {
|
||||
s({ trig = "cong", snippetType = "autosnippet" }, {
|
||||
t("cong"),
|
||||
}, { condition = tex.in_mathzone }),
|
||||
s(
|
||||
{ trig = "b|", wordTrig = false, snippetType = "autosnippet" },
|
||||
fmta(
|
||||
[[
|
||||
\Big|_(<>)
|
||||
]],
|
||||
{ i(1) }
|
||||
),
|
||||
{ condition = tex.in_mathzone }
|
||||
),
|
||||
-- s(
|
||||
-- { trig = "b|", wordTrig = false, snippetType = "autosnippet" },
|
||||
-- fmta(
|
||||
-- [[
|
||||
-- \Big|_(<>)
|
||||
-- ]],
|
||||
-- { i(1) }
|
||||
-- ),
|
||||
-- { condition = tex.in_mathzone }
|
||||
-- ),
|
||||
s(
|
||||
{ trig = "jo", wordTrig = false, snippetType = "autosnippet" },
|
||||
fmta(
|
||||
|
||||
Reference in New Issue
Block a user