summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-09 22:03:28 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-09 22:03:28 +0900
commit1853f713625558299d5e8982b9d2a8d0ff2dbc8d (patch)
treec089596b8c5052dd827c39813572b635c76d89f2 /ar/.config/TheSiahxyz/lua
parent56df043d5906aac93e4345528c5f9a6541f5b14e (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua')
-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: