neovim-dots/lua/plugins/latex.lua

19 lines
475 B
Lua
Raw Normal View History

2024-04-23 13:21:27 -07:00
-- defines latex plugins, EXCEPT the lsp (defined in lsp.)
return {
{
"lervag/vimtex",
ft = { "tex", "latex", "bib" },
-- tag = "v2.15", -- uncomment to pin to a specific release
init = function()
-- VimTeX configuration goes here
2024-04-25 09:42:25 -07:00
if vim.fn.executable("zathura") == 1 then
vim.g.vimtex_view_method = "zathura"
else
vim.g.vimtex_view_method = "skim"
end
vim.g.vimtex_compiler_method = "latexmk"
2024-04-23 13:21:27 -07:00
end,
},
}