From aad20de5ab544980769f32abc0bf61b37a6998e6 Mon Sep 17 00:00:00 2001 From: bfredl Date: Sat, 4 Jun 2022 18:35:28 +0200 Subject: fix(startup): nvim with --clean should not load user rplugins runtime rplugins such like legacy script providers are not affected by this change. --- runtime/plugin/rplugin.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/plugin/rplugin.vim b/runtime/plugin/rplugin.vim index 122d8d47f8..52f4bd05bc 100644 --- a/runtime/plugin/rplugin.vim +++ b/runtime/plugin/rplugin.vim @@ -62,4 +62,6 @@ endfunction command! -bar UpdateRemotePlugins call remote#host#UpdateRemotePlugins() -call s:LoadRemotePlugins() +if index(v:argv, "--clean") < 0 + call s:LoadRemotePlugins() +endif -- cgit