mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Hook into Neovim's :CheckHealth with jedi#debug_info
See https://github.com/neovim/neovim/blob/master/runtime/doc/pi_health.txt.
This commit is contained in:
4
autoload/health/jedi.vim
Normal file
4
autoload/health/jedi.vim
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
function! health#jedi#check() abort
|
||||||
|
call health#report_start('jedi')
|
||||||
|
silent call jedi#debug_info()
|
||||||
|
endfunction
|
||||||
@@ -171,10 +171,10 @@ function! jedi#debug_info()
|
|||||||
PythonJedi print(' - site module: {0}'.format(__import__('site').__file__))
|
PythonJedi print(' - site module: {0}'.format(__import__('site').__file__))
|
||||||
PythonJedi print('Jedi path: {0}'.format(jedi_vim.jedi.__file__))
|
PythonJedi print('Jedi path: {0}'.format(jedi_vim.jedi.__file__))
|
||||||
PythonJedi print('Jedi version: {}'.format(jedi_vim.jedi.__version__))
|
PythonJedi print('Jedi version: {}'.format(jedi_vim.jedi.__version__))
|
||||||
echo 'jedi-vim git status: '
|
echo 'jedi-vim git version: '
|
||||||
echon system('git -C '.s:script_path.' describe --tags --always --dirty')
|
echon substitute(system('git -C '.s:script_path.' describe --tags --always --dirty'), '\v\n$', '', '')
|
||||||
echo 'jedi git status: '
|
echo 'jedi git submodule status: '
|
||||||
echon system('git -C '.s:script_path.' submodule status')
|
echon substitute(system('git -C '.s:script_path.' submodule status'), '\v\n$', '', '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user