From 30c7e0f1e1fa43c5176a3e9a382c9d2318179211 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 4 Nov 2024 11:12:03 -0500 Subject: [PATCH] nvim: more typst snippets --- src/dot_config/nvim/snippets/typst.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dot_config/nvim/snippets/typst.lua b/src/dot_config/nvim/snippets/typst.lua index d09109a..80e76ec 100644 --- a/src/dot_config/nvim/snippets/typst.lua +++ b/src/dot_config/nvim/snippets/typst.lua @@ -12,8 +12,13 @@ return { -- 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 = "inf", name = "infinity", wordTrig = false }, t("infinity")), + s({ trig = "lim", name = "limit", wordTrig = true }, fmt("lim_({}) ", { i(1) })), + s({ trig = "inf", name = "infinity", wordTrig = true }, t("infinity")), + + -- derivative + s({ trig = "dx", name = "difference x", wordTrig = true }, t("/(dif x)")), + s({ trig = "dy", name = "difference y", wordTrig = true }, t("(dif y)")), + s({ trig = "der", name = "derivative", wordTrig = true }, t("dif/(dif x)")), s({ trig = "numb",