summaryrefslogtreecommitdiff
path: root/after/ftplugin/tex.lua
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-20 15:55:27 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-01-20 15:55:27 -0500
commitaa5717f00fd14430c80939a68d7107c26de6e554 (patch)
tree784e99d9b018e0554369c41cb33e2e195e28d3c6 /after/ftplugin/tex.lua
first commit
Diffstat (limited to 'after/ftplugin/tex.lua')
-rw-r--r--after/ftplugin/tex.lua19
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",
+ },
+})