aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/health/provider.vim
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-08-21 09:19:08 +0800
committerckelsel <ckelsel@hotmail.com>2017-08-21 09:19:08 +0800
commit0b6fa3a553da3b83419c48fcbb6fb3ec413598e0 (patch)
tree63cda34cb93df36f64be4beea934ee34d850104c /runtime/autoload/health/provider.vim
parent673fc748237345914e0ad584bc4cba997c96a37e (diff)
parent8d1ccb606d3806dcf9c4bcfdb0446d8139c0e765 (diff)
downloadrneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.tar.gz
rneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.tar.bz2
rneovim-0b6fa3a553da3b83419c48fcbb6fb3ec413598e0.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'runtime/autoload/health/provider.vim')
-rw-r--r--runtime/autoload/health/provider.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index ec20615f69..26db5b77b7 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -121,14 +121,14 @@ function! s:check_clipboard() abort
call health#report_start('Clipboard (optional)')
let clipboard_tool = provider#clipboard#Executable()
- if empty(clipboard_tool)
+ if exists('g:clipboard') && empty(clipboard_tool)
+ call health#report_error(
+ \ provider#clipboard#Error(),
+ \ ["Use the example in :help g:clipboard as a template, or don't set g:clipboard at all."])
+ elseif empty(clipboard_tool)
call health#report_warn(
- \ 'No clipboard tool found. Clipboard registers will not work.',
+ \ 'No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.',
\ [':help clipboard'])
- elseif exists('g:clipboard') && (type({}) != type(g:clipboard)
- \ || !has_key(g:clipboard, 'copy') || !has_key(g:clipboard, 'paste'))
- call health#report_error(
- \ 'g:clipboard exists but is malformed. It must be a dictionary with the keys documented at :help g:clipboard')
else
call health#report_ok('Clipboard tool found: '. clipboard_tool)
endif