Closed sheerun closed 3 years ago
Handling 'runtimepath' is not a task of minpac (except for supporting neovim's :UpdateRemotePlugins
command). It's a task of Vim's packages feature.
It seems that the original issue in sheerun/vim-polyglot#571 has been solved. So, closing.
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):
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.