diff options
| author | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
|---|---|---|
| committer | Mohammad Reza Karimi <m.r.karimi.j@gmail.com> | 2026-01-20 15:55:27 -0500 |
| commit | aa5717f00fd14430c80939a68d7107c26de6e554 (patch) | |
| tree | 784e99d9b018e0554369c41cb33e2e195e28d3c6 /after/ftplugin/tex.lua | |
first commit
Diffstat (limited to 'after/ftplugin/tex.lua')
| -rw-r--r-- | after/ftplugin/tex.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/after/ftplugin/tex.lua b/after/ftplugin/tex.lua new file mode 100644 index 0000000..963ab7f --- /dev/null +++ b/after/ftplugin/tex.lua @@ -0,0 +1,19 @@ +vim.cmd([[setlocal shiftwidth=2 tabstop=2]]) + +vim.fn.call("vimtex#imaps#add_map", { + { + lhs = "++", + rhs = "\\item ", + leader = "", + wrapper = "vimtex#imaps#wrap_environment", + context = { "itemize", "enumerate", "description" }, + }, +}) + +vim.fn.call("vimtex#imaps#add_map", { + { + lhs = "e", + rhs = "\\eps", + wrapper = "vimtex#imaps#wrap_math", + }, +}) |
