mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix: strings in lua reload
This commit is contained in:
parent
d3974346b6
commit
64352c4d79
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ M.commands = {
|
|||
end,
|
||||
reload = function(opts)
|
||||
for _, plugin in pairs(opts.plugins) do
|
||||
if type(plugin) == "string" then
|
||||
plugin = Config.plugins[plugin]
|
||||
end
|
||||
Util.warn("Reloading **" .. plugin.name .. "**")
|
||||
require("lazy.core.loader").reload(plugin)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue