Closed Tyrn closed 9 months ago
Please remove this line:
event = "BufRead",
You should not lazy load VimTeX (or any plugin, really, if you don't know what you are doing!). I've tried to make it clear in the README, here: https://github.com/lervag/vimtex/blob/fe20ab1bd82a23441ac55054afefcd60001947a2/README.md?plain=1#L64-L69.
Yes, it occurred to me. I tried to remove event = "BufRead"
, it just disconnected everything. Seconds ago, I added lazy=false
, and it helped.
return {
-- VImTex configuration
{
"lervag/vimtex",
lazy = false,
init = function()
vim.g.tex_flavor = "latex"
vim.g.vimtex_view_method = "zathura"
...
Is it good and proper?
Ah, yes, that looks good. lazy.nvim does not have lazy = true
by default, though, so either this is set to default by your distro or you did so yourself. So, again, be warned that you should know what you are doing when you lazy load plugins. ;)
Description
With Neovim (AstroNvim) I have forward search, but not the inverse one. My
~/.latexmkrc
:~/.config/nvim/lua/user/plugins/vimtex.lua
:~/.config/zathura/zathurarc
is empty now; I tried to put a lot of things from somebody's else configs, but to no effect whatever.What I can tell:
:VimtexInfo
shows exactly what one should expect, I suppose.What else should I check?
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
Yes
VimtexInfo