summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/TheSiahxyz')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
index 139b0a7..5ff20f9 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
@@ -256,9 +256,9 @@ vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
})
-- TeX for .tex files
-vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
- pattern = { "*.tex" },
- command = "set filetype=tex",
+vim.api.nvim_create_autocmd("VimLeavePre", {
+ pattern = "*.tex",
+ command = "!latexmk -c %",
})
-- When shortcut files are updated, renew bash and lf configs with new material: