diff options
Diffstat (limited to 'luasnip')
-rw-r--r-- | luasnip/tex.lua | 15 |
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) }) + ), } |