From 1853f713625558299d5e8982b9d2a8d0ff2dbc8d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 9 Mar 2025 22:03:28 +0900 Subject: updates --- ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ar/.config/TheSiahxyz/lua') 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: -- cgit v1.2.3