Closed ChenZhongPu closed 1 year ago
The config: …
You should remove the ft =
part - don't lazy load VimTeX! I believe this is the reason things are not working.
You should configure your settings with the init
key, not the config
key. This is to ensure that the settings are configured before VimTeX is loaded. Also, you don't need to set g:tex_flavor
. Essentially, your config can probably be simplified:
{
"lervag/vimtex",
init = function()
vim.g.vimtex_view_method = "zathura"
end,
},
The
vimtex
is installed vialazy.nvim
. The config:I followed the instructions, and installed
zathura
.Given the minimal
.tex
example:Both Compiling and forward search work, but the corresponding line in
.tex
did not get focused after clicking and holding<ctrl>
. I also checked the similar issue-2662, but it did not help.The complete
viminfo
: