Files
lua-nvim/lua/cargdev/plugins/vimtex.lua
2026-03-05 17:01:47 -05:00

27 lines
958 B
Lua

-- ============================================================================
-- VIMTEX: LaTeX editing and compilation support
-- ============================================================================
-- Comprehensive LaTeX plugin providing syntax highlighting, compilation with
-- latexmk, forward/inverse search, and PDF viewing. Configured to use Skim
-- as the PDF viewer on macOS. Loads automatically for tex, latex, and bib files.
-- ============================================================================
return {
"lervag/vimtex",
ft = { "tex", "latex", "bib" },
config = function()
-- PDF viewer: Skim on macOS, zathura elsewhere
if vim.fn.has("mac") == 1 then
vim.g.vimtex_view_method = "skim"
else
vim.g.vimtex_view_method = "zathura"
end
-- Compiler settings
vim.g.vimtex_compiler_method = "latexmk"
-- Disable quickfix auto-open (optional)
vim.g.vimtex_quickfix_mode = 0
end,
}