aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/remote/host.vim
diff options
context:
space:
mode:
authorAlex Genco <alexgenco@gmail.com>2016-03-10 18:56:47 -0800
committerAlex Genco <alexgenco@gmail.com>2016-03-10 19:01:44 -0800
commit3cb9970acf935c1b8627cfd244757b68989ad146 (patch)
treeb082163cf8ea4d43702114592323c46cef709057 /runtime/autoload/remote/host.vim
parentbb020df0f52c3eec6cb84ce1a786fa3a90904815 (diff)
downloadrneovim-3cb9970acf935c1b8627cfd244757b68989ad146.tar.gz
rneovim-3cb9970acf935c1b8627cfd244757b68989ad146.tar.bz2
rneovim-3cb9970acf935c1b8627cfd244757b68989ad146.zip
Ruby remote plugin support
Diffstat (limited to 'runtime/autoload/remote/host.vim')
-rw-r--r--runtime/autoload/remote/host.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim
index d636f3d601..0b13dce622 100644
--- a/runtime/autoload/remote/host.vim
+++ b/runtime/autoload/remote/host.vim
@@ -204,6 +204,17 @@ function! remote#host#PluginsForHost(host) abort
endfunction
+function! remote#host#LoadErrorForHost(host, log) abort
+ return 'Failed to load '. a:host . ' host. '.
+ \ 'You can try to see what happened '.
+ \ 'by starting Neovim with the environment variable '.
+ \ a:log . ' set to a file and opening the generated '.
+ \ 'log file. Also, the host stderr will be available '.
+ \ 'in Neovim log, so it may contain useful information. '.
+ \ 'See also ~/.nvimlog.'
+endfunction
+
+
" Registration of standard hosts
" Python/Python3
@@ -211,3 +222,7 @@ call remote#host#Register('python', '*.py',
\ function('provider#pythonx#Require'))
call remote#host#Register('python3', '*.py',
\ function('provider#pythonx#Require'))
+
+" Ruby
+call remote#host#Register('ruby', '*.rb',
+ \ function('provider#ruby#Require'))