From 797d72a9973b4c9978dae48ca677b26d6fe36c83 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sat, 29 Oct 2016 03:39:29 +0200 Subject: health/provider.vim: add clipboard check --- runtime/autoload/health/provider.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'runtime/autoload') 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() -- cgit