health/provider.vim: add clipboard check

This commit is contained in:
Marco Hinz
2016-10-29 03:39:29 +02:00
parent 0a1b852cd1
commit 797d72a997

View File

@@ -45,6 +45,19 @@ function! s:download(url) abort
return 'missing `curl` and `python`, cannot make pypi request'
endfunction
" Check for clipboard tools.
function! s:check_clipboard() abort
call health#report_start('Clipboard')
let clipboard_tool = provider#clipboard#Executable()
if empty(clipboard_tool)
call health#report_warn(
\ "No clipboard tool found. Using the system clipboard won't work.",
\ ['See ":help clipboard"'])
else
call health#report_ok('Clipboard tool found: '. clipboard_tool)
endif
endfunction
" Get the latest Neovim Python client version from PyPI.
function! s:latest_pypi_version() abort
@@ -371,6 +384,7 @@ function! s:check_ruby() abort
endfunction
function! health#provider#check() abort
call s:check_clipboard()
call s:check_python(2)
call s:check_python(3)
call s:check_ruby()