Files
dotfiles/dot_config/nvim/lua/plugins/vimtex.lua
T

30 lines
1.0 KiB
Lua

return {
-- VimTeX: LaTeX compilation, navigation, text objects
{
"lervag/vimtex",
ft = { "tex", "plaintex", "bib" },
init = function()
-- Must be set before vimtex loads
-- zathura-synctex: Wayland-native viewer (DBus forward search, hyprctl focus, no xdotool)
vim.g.vimtex_view_method = "general"
vim.g.vimtex_view_general_viewer = "zathura-synctex"
vim.g.vimtex_view_general_options = "--synctex-forward @line:@col:@tex @pdf"
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_compiler_latexmk_engines = { _ = "-lualatex" }
vim.g.vimtex_compiler_latexmk = {
options = {
"-shell-escape",
"-verbose",
"-file-line-error",
"-synctex=1",
"-interaction=nonstopmode",
},
}
-- Must stay 1: cmp-vimtex uses VimTeX's completion engine for \begin/\end items
vim.g.vimtex_complete_enabled = 1
vim.g.vimtex_syntax_enabled = 1
vim.g.vimtex_syntax_conceal_disable = 0
end,
},
}