From 56a5ab4dbb6b6d0d37ce2ff71d27382bb2370ae5 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 15 Dec 2023 17:07:04 +0900 Subject: [PATCH] add: nvim: math snippet --- dotfiles/neovim/luasnippets/satysfi/math.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dotfiles/neovim/luasnippets/satysfi/math.lua b/dotfiles/neovim/luasnippets/satysfi/math.lua index 495ae66..ed3a58e 100644 --- a/dotfiles/neovim/luasnippets/satysfi/math.lua +++ b/dotfiles/neovim/luasnippets/satysfi/math.lua @@ -326,14 +326,18 @@ return { {trig = ";;", show_condition = isinmath}, {t("\\frac{"), i(1), t("}{"), i(2), t("}")} ), - s( + s( -- doesn't work {trig = ";%", show_condition = isinmath}, {t("\\frac{"), i(1), t("}{"), i(2), t("}")} ), - s( + s( -- doesn't work {trig = ";/", show_condition = isinmath}, {t("\\frac{"), i(1), t("}{"), i(2), t("}")} ), + s( + {trig = ";ff", show_condition = isinmath}, + {t("\\frac{"), i(1), t("}{"), i(2), t("}")} + ), s( {trig = ";2", show_condition = isinmath}, {t("\\sqrt{"), i(1), t("}")} @@ -346,6 +350,14 @@ return { {trig = ";.", show_condition = isinmath}, t("\\cdot") ), + s( + {trig = ";l.", show_condition = isinmath}, + t("\\ldots") + ), + s( + {trig = ";v.", show_condition = isinmath}, + t("\\vdots") + ), s( {trig = ";8", show_condition = isinmath}, t("\\infty")