mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
rplugin: Initialize remote plugins lazily. #4384
This commit is contained in:
committed by
Justin M. Keyes
parent
e7485ab1c9
commit
bb020df0f5
@@ -1,5 +1,16 @@
|
||||
if exists('g:loaded_remote_plugins') || &cp
|
||||
if exists('g:loaded_remote_plugins')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_remote_plugins = 1
|
||||
call remote#host#LoadRemotePlugins()
|
||||
|
||||
command! UpdateRemotePlugins call remote#host#UpdateRemotePlugins()
|
||||
|
||||
augroup nvim-rplugin
|
||||
autocmd!
|
||||
autocmd FuncUndefined *
|
||||
\ call remote#host#LoadRemotePluginsEvent(
|
||||
\ 'FuncUndefined', expand('<amatch>'))
|
||||
autocmd CmdUndefined *
|
||||
\ call remote#host#LoadRemotePluginsEvent(
|
||||
\ 'CmdUndefined', expand('<amatch>'))
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user