diff options
author | Matthew Wozniak <sirtomato999@gmail.com> | 2024-02-14 15:46:00 -0500 |
---|---|---|
committer | Matthew Wozniak <sirtomato999@gmail.com> | 2024-02-14 15:46:00 -0500 |
commit | b15f41338b417ef429c8c50f84be40317dc074c2 (patch) | |
tree | b8ba5775b387d7cb3ec715186f4a8e661684acbc | |
parent | 31c7bc5258d7323658e60cb5400d5f3457fff74f (diff) | |
download | nvim-b15f41338b417ef429c8c50f84be40317dc074c2.tar.gz nvim-b15f41338b417ef429c8c50f84be40317dc074c2.zip |
integrals
-rw-r--r-- | after/plugin/cfg.vim | 8 | ||||
-rw-r--r-- | luasnip/tex.lua | 15 |
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) }) + ), } |