feat(commands): :Lazy! load now skips cond checks when loading plugins. Fixes #330

This commit is contained in:
Folke Lemaitre 2023-01-06 07:11:50 +01:00
commit eed1ef3c2d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 23 additions and 20 deletions

View file

@ -50,7 +50,8 @@ M.commands = {
end,
---@param opts ManagerOpts
load = function(opts)
require("lazy.core.loader").load(opts.plugins, { cmd = "LazyLoad" })
-- when a command is executed with a bang, wait will be set
require("lazy.core.loader").load(opts.plugins, { cmd = "Lazy load" }, { force = opts.wait })
end,
log = Manage.log,
build = Manage.build,