Closed ChristophSchmidpeter closed 6 months ago
I have the following lazy.nvim vimtex Lua config file: …
You want this:
return
{
{
"lervag/vimtex",
init = function()
vim.g.vimtex_compiler_latexmk_engines = { _ = "-xelatex" }
vim.g.vimtex_view_general_viewer = "okular"
vim.g.vimtex_view_general_options = "--unique file:@pdf\\#src:@line@tex"
end,
}
}
I belive this should fix your problems.
Notice: DON'T lazy load VimTeX (remove ft = tex
).
Also vim.g.tex_comment_nospell = 1
is not relevant to VimTeX.
@lervag Thanks very much for your help!
Glad to help!
Description
I have the following lazy.nvim vimtex Lua config file:
With it upon opening
.tex
files I get the following error on startup:With what/How do I replace the deprecated option
vimtex_view_general_options_latexmk
? In the:help
file I only found the optionvimtex-compiler-latexmk
, but I guess this option does something else?Steps to reproduce
See above
Expected behavior
No error message
Actual behavior
Error message
Do you use a latexmkrc file?
No, I believe?
VimtexInfo