summaryrefslogtreecommitdiff
path: root/luasnip
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <sirtomato999@gmail.com> 2024-02-14 15:46:00 -0500
committerGravatar Matthew Wozniak <sirtomato999@gmail.com> 2024-02-14 15:46:00 -0500
commitb15f41338b417ef429c8c50f84be40317dc074c2 (patch)
treeb8ba5775b387d7cb3ec715186f4a8e661684acbc /luasnip
parent31c7bc5258d7323658e60cb5400d5f3457fff74f (diff)
downloadnvim-b15f41338b417ef429c8c50f84be40317dc074c2.tar.gz
nvim-b15f41338b417ef429c8c50f84be40317dc074c2.zip
integrals
Diffstat (limited to 'luasnip')
-rw-r--r--luasnip/tex.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/luasnip/tex.lua b/luasnip/tex.lua
index 43db0fc..c6f13fd 100644
--- a/luasnip/tex.lua
+++ b/luasnip/tex.lua
@@ -1,11 +1,11 @@
return {
- s({trig="ddx", snippetType="autosnippet"}, { t("\\dv{x}") }),
+ s({trig="ddx", snippetType="autosnippet"}, { t("\frac{d}{dx} ") }),
s({trig="dydx", snippetType="autosnippet"}, { t("\\dv{y}{x}") }),
s({trig="dv", snippetType="autosnippet"}, fmta("\\dv{<>}{<>}", { i(1), i(2) }) ),
s({trig=";t", snippetType="autosnippet"}, { t("\\theta") }),
s({trig=";m", snippetType="autosnippet"}, { t("\\mu") }),
s({trig=";p", snippetType="autosnippet"}, { t("\\pi") }),
- s({trig="usepkg", snippetType="autosnippet"}, fmta("\\usepackage{<>}", { i(1) })),
+ s({trig=",pack", snippetType="autosnippet"}, fmta("\\usepackage{<>}", { i(1) })),
s({trig="ff", snippetType="autosnippet"},
{
t("\\frac{"),
@@ -24,7 +24,16 @@ return {
}
)
),
- s({trig="lim", snippetType="autosnippet"},
+ s({trig=",lim", snippetType="autosnippet"},
fmta("\\lim_{<>\\to<>}", { i(1), i(2) })
),
+ s({trig=",int", snippetType="autosnippet"},
+ fmta("\\int_{<>}^{<>} <>\\, d<>", { i(1), i(2), i(3), i(4) })
+ ),
+ s({trig=",anti", snippetType="autosnippet"},
+ fmta("\\int <>\\, d<>", { i(1), i(2) })
+ ),
+ s({trig=",mm", snippetType="autosnippet"},
+ fmta("$$\n<>\n$$", { i(1) })
+ ),
}