commit aad20de5ab544980769f32abc0bf61b37a6998e6
parent df4ffce543ba0d4e2464b3978f4e66eaddf6a29a
Author: bfredl <bjorn.linse@gmail.com>
Date: Sat, 4 Jun 2022 18:35:28 +0200
fix(startup): nvim with --clean should not load user rplugins
runtime rplugins such like legacy script providers are not affected
by this change.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git 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
diff --git a/src/nvim/main.c b/src/nvim/main.c
@@ -263,6 +263,8 @@ int main(int argc, char **argv)
nlua_init();
+ TIME_MSG("init lua interpreter");
+
if (embedded_mode) {
const char *err;
if (!channel_from_stdio(true, CALLBACK_READER_INIT, &err)) {