Save plugin name as key
This commit is contained in:
parent
4b0cecec64
commit
c1d2885e9c
@ -212,7 +212,7 @@ function load_plugins()
|
|||||||
for k, v in pairs(_config.enabled_plugins) do
|
for k, v in pairs(_config.enabled_plugins) do
|
||||||
print("Loading plugin", v)
|
print("Loading plugin", v)
|
||||||
local t = loadfile("plugins/"..v..'.lua')()
|
local t = loadfile("plugins/"..v..'.lua')()
|
||||||
table.insert(plugins, t)
|
plugins[v] = t
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user