From 1481552c268e077964962ff4e40705bd6ee283ed Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Tue, 7 Sep 2021 15:58:11 +0900 Subject: [PATCH] true as table --- lua/cmp/utils/misc.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/cmp/utils/misc.lua b/lua/cmp/utils/misc.lua index 98a5336..38e1f33 100644 --- a/lua/cmp/utils/misc.lua +++ b/lua/cmp/utils/misc.lua @@ -38,6 +38,12 @@ misc.merge = function(v1, v2) if v1 == nil then return v2 end + if v1 == true then + if merge2 then + return v2 + end + return {} + end return v1 end