Skip to content

Commit

Permalink
feat(startup): load builtin plugins with --clean neovim#15893
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanders committed Oct 4, 2021
1 parent 44f7b46 commit c7a63f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/doc/starting.txt
Expand Up @@ -90,10 +90,11 @@ argument.
See |info-message| about capturing the text.

*--clean*
--clean Equivalent to "-u NONE -i NONE":
--clean Mimics a fresh install of Nvim:
- Skips initializations from files and environment variables.
- No 'shada' file is read or written.
- Excludes user directories from 'runtimepath'
- Loads builtin plugins, unlike "-u NONE -i NONE".

*--noplugin*
--noplugin Skip loading plugins. Resets the 'loadplugins' option.
Expand Down
3 changes: 2 additions & 1 deletion src/nvim/main.c
Expand Up @@ -345,7 +345,8 @@ int main(int argc, char **argv)
// Reset 'loadplugins' for "-u NONE" before "--cmd" arguments.
// Allows for setting 'loadplugins' there.
if (params.use_vimrc != NULL && strequal(params.use_vimrc, "NONE")) {
p_lpl = false;
// When using --clean we still want to load plugins
p_lpl = params.clean;
}

// Execute --cmd arguments.
Expand Down

0 comments on commit c7a63f3

Please sign in to comment.