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

View File

@@ -29,3 +29,4 @@ alias transcat='queercat -f transgender'
alias bicat='queercat -f bisexual' alias bicat='queercat -f bisexual'
source <(fzf --zsh) source <(fzf --zsh)
export PATH="$HOME/.local/bin:$PATH"