Update vimtex plugin to add command for rendering.

This commit is contained in:
2026-02-14 15:59:45 -08:00
parent bc5e267ab3
commit 9a75066e5d
2 changed files with 7 additions and 3 deletions

View File

@@ -1,9 +1,12 @@
return {
'lervag/vimtex',
lazy = false, -- we don't want to lazy load VimTeX
-- tag = "v2.15", -- uncomment to pin to a specific release
lazy = false,
ft = { 'tex', 'latex', 'bib' },
init = function()
-- VimTeX configuration goes here, e.g.
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_compiler_method = 'latexmk'
end,
keys = {
{ '<leader>r', '<cmd>VimtexCompile<cr>', desc = 'Compile LaTeX and view PDF', ft = 'tex' },
},
}