return { { "lervag/vimtex", ft = { "tex", "bib", "latex" }, -- lazy-load on LaTeX files config = function() -- General vimtex settings vim.g.vimtex_view_method = "zathura" -- PDF viewer vim.g.vimtex_compiler_method = "latexmk" -- compiler vim.g.vimtex_quickfix_mode = 0 -- disable quickfix vim.g.vimtex_compiler_latexmk = { options = { "-pdf", "-interaction=nonstopmode", "-synctex=1", }, } -- Optional: F5 for compiling vim.api.nvim_set_keymap("n", "", ":VimtexCompile", { noremap = true, silent = true }) end, }, }