fix global variable causing issues

This commit is contained in:
zbirenbaum 2022-02-14 15:32:23 -05:00 committed by siduck
parent d9d380e41b
commit 4be722d4a6
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)