From b4c50fa443279095f648630709400d38f1cb9809 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 13 Nov 2021 22:26:38 +0530 Subject: [PATCH] misc change in override function --- lua/plugins/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 283d05c..078233d 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -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 local override_req = function(name, default_req) local override = require("core.utils").load_config().plugins.default_plugin_config_replace[name] - local result + local result = default_req - if override == nil then - result = default_req - else + if override ~= nil then result = override end