Skip to content

Commit

Permalink
fix: add an option for manually specifying the path to the vim binary
Browse files Browse the repository at this point in the history
  • Loading branch information
poscat0x04 committed Dec 1, 2021
1 parent 2f164ee commit 7304a4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/vimtex/view/zathura.vim
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ endfunction

" }}}1

let s:inverse_search_cmd = get(v:, 'progpath', get(v:, 'progname', ''))
let s:inverse_search_cmd = get(g:, 'vimtex_callback_progpath',
\ get(v:, 'progpath', get(v:, 'progname', '')))
\ . (has('nvim')
\ ? ' --headless'
\ : ' -T dumb --not-a-term -n')
9 changes: 9 additions & 0 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2927,6 +2927,15 @@ OPTIONS *vimtex-options*

Default value: 1

*g:vimtex_callback_progpath*
The path to the vim binary that will be passed to viewers (for example
Zathura) for synctex callbacks. If unset, vimtex will fallback to use
|v:progpath|. You usually don't have to touch this variable, but if your
vim loads vimtex using a wrapper then it needs to be set otherwise
inverse search calls from viewers won't work.

Default value: unset

*$VIMTEX_OUTPUT_DIRECTORY*
This environment variable allows to specify the output directory of
auxiliary LaTeX files. If it exists and is a valid path, this path will be
Expand Down

0 comments on commit 7304a4e

Please sign in to comment.