Skip to content
Discussion options

You must be logged in to vote
Admin verified this answer by abeldekat Jan 19, 2026

Hello @maxtrap,

The vimtex plugin is mostly implemented in vimscript. As a consequence it does not have the usual "lua setup" method. The user configures the plugin using vim variables, which are best set before the plugin is added. Hence the "init" in your lazy.nvim example.

Do note that the author warns to not lazy-load. It's probably best to use "now" instead of "later".

The code for 'mini.deps':

MiniDeps.now(function()
    vim.g.vimtex_view_method = "zathura"
    MiniDeps.add("lervag/vimtex")
end)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxtrap
Comment options

Answer verified by Admin Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.deps
2 participants