diff options
| -rw-r--r-- | lua/Snippets/tex/environments.lua | 4 | ||||
| -rw-r--r-- | lua/Snippets/tex/math.lua | 17 | ||||
| -rw-r--r-- | lua/Snippets/tex/symbols.lua (renamed from lua/Snippets/tex/greek.lua) | 6 | ||||
| -rw-r--r-- | lua/config/options.lua | 1 |
4 files changed, 26 insertions, 2 deletions
diff --git a/lua/Snippets/tex/environments.lua b/lua/Snippets/tex/environments.lua index fd19387..c4bb38a 100644 --- a/lua/Snippets/tex/environments.lua +++ b/lua/Snippets/tex/environments.lua @@ -22,9 +22,9 @@ return { s({ trig = 'enu', snippetType = 'autosnippet' }, fmta( [[ -\begin{enumerate*} +\begin{enumerate} \item <> -\end{enumerate*} +\end{enumerate} ]], { i(1), diff --git a/lua/Snippets/tex/math.lua b/lua/Snippets/tex/math.lua index 670ed80..9d50cb0 100644 --- a/lua/Snippets/tex/math.lua +++ b/lua/Snippets/tex/math.lua @@ -22,8 +22,25 @@ return { ), { condition = tex.in_mathzone } ), + s({ trig = "tex", snippetType = "autosnippet" }, + fmta( + '\\text{<>}', + { + i(1), + } + ), + { condition = tex.in_mathzone } + ), s({ trig = 'df', snippetType = 'autosnippet' }, { t('\\diff ') }, { condition = tex.in_mathzone } ), + s({ trig = 'ple', snippetType = 'autosnippet' }, + { t('\\left(') }, + { condition = tex.in_mathzone } + ), + s({ trig = 'pri', snippetType = 'autosnippet' }, + { t('\\right)') }, + { condition = tex.in_mathzone } + ), } diff --git a/lua/Snippets/tex/greek.lua b/lua/Snippets/tex/symbols.lua index f47cdac..684d9ed 100644 --- a/lua/Snippets/tex/greek.lua +++ b/lua/Snippets/tex/symbols.lua @@ -14,4 +14,10 @@ return { }, { condition = tex.in_mathzone } ), + s({ trig = "app", snippetType = "autosnippet" }, + { + t("\\approx"), + }, + { condition = tex.in_mathzone } + ), } diff --git a/lua/config/options.lua b/lua/config/options.lua index 04c25df..c759574 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -18,6 +18,7 @@ return { vim.opt.undodir = { vim.fn.stdpath('data') .. '/undo' } vim.opt.undolevels = 1000 + vim.opt.cmdheight = 0 vim.opt.fillchars = 'eob: ' vim.opt.showmode = false |
