diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2015-05-30 18:33:45 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-05-31 12:47:54 -0400 |
commit | 7dc241ac782e3a469d73d5f9a7baeba4e6107333 (patch) | |
tree | e2329f37f7110103020946109497b95e07074dba | |
parent | deb65188ac25e4d941b0304464befb8bd9d07c3b (diff) | |
download | rneovim-7dc241ac782e3a469d73d5f9a7baeba4e6107333.tar.gz rneovim-7dc241ac782e3a469d73d5f9a7baeba4e6107333.tar.bz2 rneovim-7dc241ac782e3a469d73d5f9a7baeba4e6107333.zip |
rplugin: Improve remote plugins detection messages #2769
-rw-r--r-- | runtime/autoload/remote/host.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index c4b7ebf91f..2a7cd3c43b 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -127,11 +127,10 @@ function! s:RegistrationCommands(host) call remote#host#RegisterClone(host_id, a:host) let pattern = s:plugin_patterns[a:host] let paths = globpath(&rtp, 'rplugin/'.a:host.'/'.pattern, 0, 1) - if len(paths) < 1 - echom "Could not find any plugins when attempting to register plugin " - \ ."commands. See :he remote-plugin" + if empty(paths) return [] endif + for path in paths call remote#host#RegisterPlugin(host_id, path, []) endfor @@ -151,6 +150,9 @@ function! s:RegistrationCommands(host) endfor call add(lines, " \\ ])") endfor + echomsg printf("remote/host: %s host registered plugins %s", + \ a:host, string(map(copy(paths), "fnamemodify(v:val, ':t')"))) + " Delete the temporary host clone call rpcstop(s:hosts[host_id].channel) call remove(s:hosts, host_id) |