📦 Migration Guide
packer.nvim
setup
➡️init
requires
➡ ️dependencies
as
➡️name
opt
➡️lazy
run
➡️build
lock
➡️pin
disable=true
➡️enabled = false
tag='*'
➡️version="*"
after
is not needed for most use-cases. Usedependencies
otherwise.wants
is not needed for most use-cases. Usedependencies
otherwise.config
don't support string type, usefun(LazyPlugin)
instead.module
is auto-loaded. No need to specifykeys
spec is differentrtp
can 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
➡️name
opt
➡️lazy
run
➡️build