From 525bf1f076aa195b2082d20cb5574cc0daaec09c Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Fri, 12 Nov 2021 11:36:48 -0800 Subject: [PATCH] fix(colors): return false when theme doesn't load --- lua/cosmic/core/theme/colors.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/cosmic/core/theme/colors.lua b/lua/cosmic/core/theme/colors.lua index f53d04f..b729e1e 100644 --- a/lua/cosmic/core/theme/colors.lua +++ b/lua/cosmic/core/theme/colors.lua @@ -13,4 +13,8 @@ elseif config.theme == 'nord.nvim' then colors = require('cosmic.core.theme.integrated.nord') end +if vim.tbl_isempty(colors) then + return false +end + return colors