From 6b47e1a919368e2ffe16b675344f727aad694a6e Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 13 Sep 2024 16:01:03 -0400 Subject: [PATCH] nvim: math typst snippets --- src/dot_config/nvim/snippets/typst.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dot_config/nvim/snippets/typst.lua b/src/dot_config/nvim/snippets/typst.lua index 4ff5dc7..d44d156 100644 --- a/src/dot_config/nvim/snippets/typst.lua +++ b/src/dot_config/nvim/snippets/typst.lua @@ -9,6 +9,11 @@ return { s({ trig = "qu", name = "square (qu-artic) exponent", wordTrig = false }, t("^2")), s({ trig = "cub", name = "cub-ed exponent", wordTrig = false }, t("^3")), + -- limits + s({ trig = "plus", name = "plus exponent", wordTrig = false }, t("^+")), + s({ trig = "min", name = "minus exponent", wordTrig = false }, t("^-")), + s({ trig = "lim", name = "limit", wordTrig = false }, fmt("lim_({}) ", { i(1) })), + s({ trig = "numb", name = "numbered equation",