Skip to content

Commit

Permalink
fix(startup): nvim with --clean should not load user rplugins
Browse files Browse the repository at this point in the history
runtime rplugins such like legacy script providers are not affected
by this change.

(cherry picked from commit aad20de)
  • Loading branch information
bfredl authored and github-actions[bot] committed Jun 17, 2022
1 parent fdd5178 commit 4170983
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/plugin/rplugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/nvim/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4170983

Please sign in to comment.