neovim-dots/lua/plugins/latex.lua

20 lines
547 B
Lua
Raw Permalink Normal View History

2024-04-26 13:36:13 -07:00
-- defines latex plugins, which don't fall in to any of the other categories
-- eg. besides the lsp (defined in lsp) and formatter
2024-04-23 13:21:27 -07:00
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,
},
}