File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ function! s:info.gather_system_info() abort dict " {{{1
3939 let l: lines = [
4040 \ ' System info:' ,
4141 \ ' OS: ' . s: get_os_info (),
42+ \ ' LaTeX version: ' . s: get_latex_info (),
4243 \ ' Vim version: ' . s: get_vim_info (),
4344 \]
4445
@@ -50,6 +51,11 @@ function! s:info.gather_system_info() abort dict " {{{1
5051 call add (l: lines , ' Has clientserver: false' )
5152 endif
5253
54+ call add (l: lines , ' $PATH:' )
55+ for l: path in uniq (sort (split ($PATH , ' [:;]' )))
56+ call add (l: lines , ' - ' .. l: path )
57+ endfor
58+
5359 return l: lines
5460endfunction
5561
@@ -207,6 +213,15 @@ function! s:get_os_info() abort " {{{1
207213 endif
208214endfunction
209215
216+ " }}}1
217+ function ! s: get_latex_info () abort " {{{1
218+ let l: result = executable (' latex' )
219+ \ ? vimtex#jobs#capture (' latex --version' )[0 ]
220+ \ : ' LATEX WAS NOT FOUND!'
221+
222+ return l: result
223+ endfunction
224+
210225" }}}1
211226function ! s: get_vim_info () abort " {{{1
212227 let l: info = vimtex#util#command (' version' )
You can’t perform that action at this time.
0 commit comments