aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-04 18:35:28 +0200
committerbfredl <bjorn.linse@gmail.com>2022-06-04 18:37:54 +0200
commitaad20de5ab544980769f32abc0bf61b37a6998e6 (patch)
tree9f20c2fa255a49af3385b43abcda456509189ddf
parentdf4ffce543ba0d4e2464b3978f4e66eaddf6a29a (diff)
downloadrneovim-aad20de5ab544980769f32abc0bf61b37a6998e6.tar.gz
rneovim-aad20de5ab544980769f32abc0bf61b37a6998e6.tar.bz2
rneovim-aad20de5ab544980769f32abc0bf61b37a6998e6.zip
fix(startup): nvim with --clean should not load user rplugins
runtime rplugins such like legacy script providers are not affected by this change.
-rw-r--r--runtime/plugin/rplugin.vim4
-rw-r--r--src/nvim/main.c2
2 files changed, 5 insertions, 1 deletions
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
diff --git a/src/nvim/main.c b/src/nvim/main.c
index fabfc57037..71c1ddfae1 100644
--- 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)) {