File: handlers.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (15 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function! vimtex#doc#handlers#texdoc(context) abort " {{{1
  call vimtex#doc#make_selection(a:context)

  if !empty(a:context.selected)
    call vimtex#jobs#run('texdoc --nointeract -l ' . a:context.selected)
    if v:shell_error == 0
      call vimtex#jobs#start('texdoc ' . a:context.selected)
      return 1
    endif
  endif

  return 0
endfunction

" }}}1