This commit is contained in:
Zelong Kuang
2025-10-09 21:44:19 +11:00
parent 4da3e1927f
commit a004c2c78d
8 changed files with 200 additions and 203 deletions

View File

@@ -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_(<>)", {