summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--after/plugin/cfg.vim8
-rw-r--r--luasnip/tex.lua15
2 files changed, 17 insertions, 6 deletions
diff --git a/after/plugin/cfg.vim b/after/plugin/cfg.vim
index b11cdce..3fb0433 100644
--- a/after/plugin/cfg.vim
+++ b/after/plugin/cfg.vim
@@ -15,6 +15,8 @@ set guioptions-=L
set gfn=Fira\ Code:h12
set noshowmode
-set formatoptions+=a
-
-colorscheme vacme
+if has('gui_running')
+ colorscheme dim
+else
+ colorscheme monochrome
+endif
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) })
+ ),
}