fix global variable causing issues
This commit is contained in:
parent
d9d380e41b
commit
4be722d4a6
@ -282,7 +282,7 @@ end
|
||||
|
||||
--provide labels to plugins instead of integers
|
||||
M.label_plugins = function(plugins)
|
||||
plugins_labeled = {}
|
||||
local plugins_labeled = {}
|
||||
for _, plugin in ipairs(plugins) do
|
||||
plugins_labeled[plugin[1]] = plugin
|
||||
end
|
||||
|
@ -233,7 +233,7 @@ plugins = require("core.utils").remove_default_plugins(plugins)
|
||||
plugins = require("core.utils").add_user_plugins(plugins)
|
||||
|
||||
return packer.startup(function(use)
|
||||
for _, v in pairs(plugins_labeled) do
|
||||
for _, v in pairs(plugins) do
|
||||
use(v)
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user