📦 Migration Guide
packer.nvim
setup➡️initrequires➡ ️dependenciesas➡️nameopt➡️lazyrun➡️buildlock➡️pindisable=true➡️enabled = falsetag='*'➡️version="*"afteris not needed for most use-cases. Usedependenciesotherwise.wantsis not needed for most use-cases. Usedependenciesotherwise.configdon't support string type, usefun(LazyPlugin)instead.moduleis auto-loaded. No need to specifykeysspec is differentrtpcan be accomplished with:
config = function(plugin)
vim.opt.rtp:append(plugin.dir .. "/custom-rtp")
end
With packer wants, requires and after can be used to manage dependencies.
With lazy, this isn't needed for most of the Lua dependencies. They can be installed just like normal plugins
(even with lazy=true) and will be loaded when other plugins need them.
The dependencies key can be used to group those required plugins with the one that requires them.
The plugins which are added as dependencies will always be lazy-loaded and loaded when the plugin is loaded.
paq-nvim
as➡️nameopt➡️lazyrun➡️build