Files
dotfiles/.config/vim/ftplugin/tex.vim
Julian Prein 890464b8dd vim:ftplug:tex: Close quickfix window on movement
When continuous compiling on write, the quickfix window can be tedious
when it pops up every time containing errors that will be resolved in
the future or ignored.

Fix this by closing it as soon as the cursor is moved.
2023-01-11 21:42:43 +01:00

31 lines
749 B
VimL

" Turn on line-wrapping
set wrap
let g:tex_flavor = "latex"
let g:vimtex_compiler_progname = 'nvr'
" Close the quickfix window after a cursor movement
let g:vimtex_quickfix_autoclose_after_keystrokes = 1
" Setup latexmk and make callback possible with synctex
" (Click into PDF to land in code)
let g:vimtex_compiler_latexmk = {
\ 'build_dir' : 'tex_build',
\ 'callback' : 1,
\ 'continuous' : 1,
\ 'executable' : 'latexmk',
\ 'hooks' : [],
\ 'options' : [
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ '-shell-escape',
\ ],
\}
" synctex needs to be activated in zathurarc as well
let g:vimtex_context_pdf_viewer='zathura'
let g:vimtex_view_general_viewer = 'zathura'
let g:vimtex_view_method='zathura'