dotfiles/.config/nvim/lua/disabled_plugins/vimtex.lua
2024-02-28 01:37:11 +01:00

41 lines
1.2 KiB
Lua

return {
{
"lervag/vimtex",
ft = {"tex", "bib"},
config = function()
-- General configuration
vim.cmd("syntax enable")
vim.g.vimtex_compiler_latexmk = {
out_dir = 'build',
options = {
'-shell-escape',
'-verbose',
'-file-line-error',
'-interaction=nonstopmode',
'-synctex=1'
}
}
vim.g.vimtex_view_general_viewer = 'sioyek'
vim.g.vimtex_quickfix_mode = 0
-- Concealment
vim.cmd([[set conceallevel=1]])
vim.g.tex_conceal = 'abdmg'
-- Synctex configuration
vim.g.vimtex_compiler_progname = 'nvr'
local options = string.format(
'--reuse-window --inverse-search="nvr --servername %s +%%2 %%1" --forward-search-file @tex --forward-search-line @line @pdf',
vim.v.servername)
local command = string.format("let g:vimtex_view_general_options='%s'", options)
vim.cmd(command)
end
}
}