From cc5ca2e8c8fa3cf2e60321fdb0cb4ddb66551ff2 Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 12 Nov 2025 23:57:20 +0800 Subject: Initial Commit --- lua/config/vimtex.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/config/vimtex.lua (limited to 'lua/config/vimtex.lua') diff --git a/lua/config/vimtex.lua b/lua/config/vimtex.lua new file mode 100644 index 0000000..24679bf --- /dev/null +++ b/lua/config/vimtex.lua @@ -0,0 +1,30 @@ +return function() + -- Use Zathura as the PDF viewer + vim.g.vimtex_view_method = "zathura" + + -- Compile using latexmk automatically + vim.g.vimtex_compiler_method = "latexmk" + vim.g.vimtex_compiler_latexmk = { + build_dir = "build", -- Keep files in a separate folder + callback = 1, + continuous = 1, -- Automatically recompile on save + executable = "latexmk", + options = { + "-pdf", + "-interaction=nonstopmode", + "-synctex=1", + }, + } + + -- Optional: disable conceal for clearer LaTeX text + vim.g.vimtex_syntax_conceal = { + accents = 0, + ligatures = 0, + cites = 0, + fancy = 0, + spacing = 0, + greek = 0, + math_delimiters = 0, + math_super_sub = 0, + } +end -- cgit v1.2.3