fix(colors): return false when theme doesn't load
This commit is contained in:
parent
a6858e9950
commit
525bf1f076
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue