aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-04 19:25:52 +0200
committerGitHub <noreply@github.com>2022-06-04 19:25:52 +0200
commit79a194a27844e34112a9befe854df98df06159d5 (patch)
tree9f20c2fa255a49af3385b43abcda456509189ddf
parentdf4ffce543ba0d4e2464b3978f4e66eaddf6a29a (diff)
parentaad20de5ab544980769f32abc0bf61b37a6998e6 (diff)
downloadrneovim-79a194a27844e34112a9befe854df98df06159d5.tar.gz
rneovim-79a194a27844e34112a9befe854df98df06159d5.tar.bz2
rneovim-79a194a27844e34112a9befe854df98df06159d5.zip
Merge pull request #18861 from bfredl/norplugin
fix(startup): nvim with --clean should not load user rplugins
-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)) {