mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
health/provider.vim: add clipboard check
This commit is contained in:
@@ -45,6 +45,19 @@ function! s:download(url) abort
|
|||||||
return 'missing `curl` and `python`, cannot make pypi request'
|
return 'missing `curl` and `python`, cannot make pypi request'
|
||||||
endfunction
|
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.
|
" Get the latest Neovim Python client version from PyPI.
|
||||||
function! s:latest_pypi_version() abort
|
function! s:latest_pypi_version() abort
|
||||||
@@ -371,6 +384,7 @@ function! s:check_ruby() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! health#provider#check() abort
|
function! health#provider#check() abort
|
||||||
|
call s:check_clipboard()
|
||||||
call s:check_python(2)
|
call s:check_python(2)
|
||||||
call s:check_python(3)
|
call s:check_python(3)
|
||||||
call s:check_ruby()
|
call s:check_ruby()
|
||||||
|
Reference in New Issue
Block a user