30 lines
815 B
Lua
30 lines
815 B
Lua
return {
|
|
{
|
|
"lervag/vimtex",
|
|
lazy = false, -- lazy-loading will disable inverse search
|
|
config = function()
|
|
vim.api.nvim_create_autocmd({ "FileType" }, {
|
|
group = vim.api.nvim_create_augroup("lazyvim_vimtex_conceal", { clear = true }),
|
|
pattern = { "bib", "tex" },
|
|
callback = function()
|
|
vim.wo.conceallevel = 2
|
|
end,
|
|
})
|
|
|
|
vim.g.vimtex_compiler_latexmk = {
|
|
options = {
|
|
"-verbose",
|
|
"-file-line-error",
|
|
"-synctex=1",
|
|
"-interaction=nonstopmode",
|
|
"-shell-escape",
|
|
},
|
|
}
|
|
|
|
vim.g.vimtex_mappings_disable = { ["n"] = { "K" } } -- disable `K` as it conflicts with LSP hover
|
|
vim.g.vimtex_quickfix_method = "pplatex"
|
|
vim.g.vimtex_view_method = "zathura"
|
|
end,
|
|
},
|
|
}
|