Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm author of vim-polyglot plugin which as very specific requirements when it comes about source files of plugins. Specifically it is required that its filetype script is loaded before vim's filetype script. Also the order of loading packages is important, vim-polyglot should defined first in ~/.vimrc, and should also be loaded first, before any other plugins. Consider
~/.vimrc
that defines 2 plugins to load. Every other package manager sources files in this order:You can see it in action for vim-plug (vundle, pathogen, dein.vim work the same). The same story is even with vim8 packages when using start plugins + packload (here plugin load order depends on names of plugins), and also vim8 opt packages + packadd command (though here filetype.vim is loaded in reversed order...).
Here finally we can compare with what minpac does. First of all load order is different on vim and nvim, and it is wrong in both cases.
Vim load order:
Nvim load order (even worse):
5 plugin dir of vim plugins
As you can see nothing is consistent and this PR changes it by loading plugins in correct order, on all platforms, in correct time, as other plugin managers do, and exactly the same on vim and nvim. I'm doing to by installing all packages as opt, and manually adding them to runtimepath, instead of either calling packadd, packadd!, packload, all of which have weird behaviors.