misc change in override function

This commit is contained in:
siduck 2021-11-13 22:26:38 +05:30
parent c8a27d701c
commit b4c50fa443

View File

@ -15,11 +15,9 @@ return packer.startup(function()
-- if override or default_req start with `(`, then strip that and assume override calls a function, not a whole file -- if override or default_req start with `(`, then strip that and assume override calls a function, not a whole file
local override_req = function(name, default_req) local override_req = function(name, default_req)
local override = require("core.utils").load_config().plugins.default_plugin_config_replace[name] local override = require("core.utils").load_config().plugins.default_plugin_config_replace[name]
local result local result = default_req
if override == nil then if override ~= nil then
result = default_req
else
result = override result = override
end end