summaryrefslogtreecommitdiff
path: root/after/ftplugin/tex.lua
diff options
context:
space:
mode:
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",
+ },
+})