diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/remote/host.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 0b13dce622..0b4eef158d 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -130,7 +130,7 @@ endfunction function! remote#host#LoadRemotePluginsEvent(event, pattern) abort autocmd! nvim-rplugin call remote#host#LoadRemotePlugins() - execute 'doautocmd' a:event a:pattern + execute 'silent doautocmd' a:event a:pattern endfunction @@ -149,7 +149,9 @@ function! s:RegistrationCommands(host) abort endfor let channel = remote#host#Require(host_id) let lines = [] + let registered = [] for path in paths + unlet! specs let specs = rpcrequest(channel, 'specs', path) if type(specs) != type([]) " host didn't return a spec list, indicates a failure while loading a @@ -162,9 +164,10 @@ function! s:RegistrationCommands(host) abort call add(lines, " \\ ".string(spec).",") endfor call add(lines, " \\ ])") + call add(registered, path) endfor echomsg printf("remote/host: %s host registered plugins %s", - \ a:host, string(map(copy(paths), "fnamemodify(v:val, ':t')"))) + \ a:host, string(map(registered, "fnamemodify(v:val, ':t')"))) " Delete the temporary host clone call rpcstop(s:hosts[host_id].channel) @@ -218,9 +221,9 @@ endfunction " Registration of standard hosts " Python/Python3 -call remote#host#Register('python', '*.py', +call remote#host#Register('python', '*', \ function('provider#pythonx#Require')) -call remote#host#Register('python3', '*.py', +call remote#host#Register('python3', '*', \ function('provider#pythonx#Require')) " Ruby |