return { { "lervag/vimtex", ft = {"tex", "bib"}, config = function() -- General configuration vim.cmd("syntax enable") vim.g.vimtex_compiler_latexmk = { out_dir = 'build', options = { '-shell-escape', '-verbose', '-file-line-error', '-interaction=nonstopmode', '-synctex=1' } } vim.g.vimtex_view_general_viewer = 'sioyek' vim.g.vimtex_quickfix_mode = 0 -- Concealment vim.cmd([[set conceallevel=1]]) vim.g.tex_conceal = 'abdmg' -- Synctex configuration vim.g.vimtex_compiler_progname = 'nvr' local options = string.format( '--reuse-window --inverse-search="nvr --servername %s +%%2 %%1" --forward-search-file @tex --forward-search-line @line @pdf', vim.v.servername) local command = string.format("let g:vimtex_view_general_options='%s'", options) vim.cmd(command) end } }