diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-10-29 03:39:29 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-11-02 12:06:54 +0100 |
commit | 797d72a9973b4c9978dae48ca677b26d6fe36c83 (patch) | |
tree | f06fbe473d999f09f6c53219827aa13addef7246 | |
parent | 0a1b852cd10aafc35a12fbfd9f756c5465c6c50c (diff) | |
download | rneovim-797d72a9973b4c9978dae48ca677b26d6fe36c83.tar.gz rneovim-797d72a9973b4c9978dae48ca677b26d6fe36c83.tar.bz2 rneovim-797d72a9973b4c9978dae48ca677b26d6fe36c83.zip |
health/provider.vim: add clipboard check
-rw-r--r-- | runtime/autoload/health/provider.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index d4b2f07a17..3c40e48b2e 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -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() |