mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(commands): added highly experimental Lazy reload ...
command. See #445
This commit is contained in:
parent
d8a5829fda
commit
a6c8f22362
3 changed files with 23 additions and 3 deletions
|
@ -53,6 +53,12 @@ M.commands = {
|
|||
-- 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,
|
||||
reload = function(opts)
|
||||
for _, plugin in pairs(opts.plugins) do
|
||||
Util.warn("Reloading **" .. plugin.name .. "**")
|
||||
require("lazy.core.loader").reload(plugin)
|
||||
end
|
||||
end,
|
||||
log = Manage.log,
|
||||
build = Manage.build,
|
||||
clean = Manage.clean,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue