mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-26 04:00:29 +08:00
42 lines
1.8 KiB
VimL
42 lines
1.8 KiB
VimL
function! SpaceVim#health#python#check() abort
|
|
let result = ['SpaceVim python support check report:']
|
|
if has('nvim')
|
|
call add(result, 'Checking +python3:')
|
|
if has('python3')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
call add(result, ' Failed : to support +python3, you need run `pip3 install neovim`')
|
|
endif
|
|
call add(result, 'Checking +python:')
|
|
if has('python')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
call add(result, ' Failed : to support +python, you need run `pip2 install neovim`')
|
|
endif
|
|
else
|
|
call add(result, 'Checking +python3:')
|
|
if has('python3')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
if !WINDOWS()
|
|
call add(result, ' Failed : to support +python3, Please install vim-gik, or build from sources.')
|
|
else
|
|
call add(result, ' Failed : to support +python3, install vim from https://github.com/vim/vim-win32-installer/releases')
|
|
call add(result, ' install python3, make sure you have `python` in your path.')
|
|
endif
|
|
endif
|
|
call add(result, 'Checking +python:')
|
|
if has('python')
|
|
call add(result, ' SUCCEED!')
|
|
else
|
|
if !WINDOWS()
|
|
call add(result, ' Failed : to support +python, Please install vim-gik, or build from sources.')
|
|
else
|
|
call add(result, ' Failed : to support +python3, install vim from https://github.com/vim/vim-win32-installer/releases')
|
|
call add(result, ' install python3, make sure you have `python` in your path.')
|
|
endif
|
|
endif
|
|
endif
|
|
return result
|
|
endfunction
|