fix(colors): return false when theme doesn't load

This commit is contained in:
Matt Leong 2021-11-12 11:36:48 -08:00
parent a6858e9950
commit 525bf1f076

View file

@ -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