From 6ff356ae932a16df38ac50b7ef4301055f7a8842 Mon Sep 17 00:00:00 2001 From: tomasky Date: Tue, 28 Jun 2022 12:33:34 +0800 Subject: [PATCH] fix: let override function works,fix #1287 #1278 --- lua/core/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 6dd1f8c..2b3fea0 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -149,7 +149,8 @@ M.load_override = function(default_table, plugin_name) if type(user_table) == "function" then user_table = user_table() - elseif type(user_table) == "table" then + end + if type(user_table) == "table" then default_table = merge_tb("force", default_table, user_table) else default_table = default_table