nvim: misc typst snippet changes

This commit is contained in:
dogeystamp 2024-05-27 19:34:13 -04:00
parent e9a1313914
commit 9c90ea96c6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -5,9 +5,9 @@ return {
--------------------------------
--------------------------------
s({ trig = "ss", name = "superscript", wordTrig = false }, fmt("^({}) ", { i(1) })),
s({ trig = "qu", name = "square (qu-artic) exponent", wordTrig = false }, t("^2 ")),
s({ trig = "cub", name = "cub-ed exponent", wordTrig = false }, t("^3 ")),
s({ trig = "ss", name = "superscript", wordTrig = false }, fmt("^({})", { i(1) })),
s({ trig = "qu", name = "square (qu-artic) exponent", wordTrig = false }, t("^2")),
s({ trig = "cub", name = "cub-ed exponent", wordTrig = false }, t("^3")),
s({
trig = "numb",
@ -34,6 +34,31 @@ return {
i(2),
})),
s({
trig = "qty",
name = "quantity + unit",
wordTrig = false
},
fmt(
[[#qty("{}", "{}")]],
{
i(1, "numb"),
i(2, "unit")
})),
s({
trig = "pq",
name = "percentage error quantity",
wordTrig = false
},
fmt(
[[#pq("{}", "{}", "{}")]],
{
i(1, "numb"),
i(2, "unit"),
i(3, "percentage error"),
})),
--------------------------------
--------------------------------
-- figures