nvim/lua/cosmic/theme/colors.lua

16 lines
359 B
Lua

local config = require('cosmic.config')
local colors = {}
local mod = 'cosmic.theme.integrated.'
local supported_themes = require('cosmic.theme.plugins').supported_themes
for _, theme in pairs(supported_themes) do
if theme == config.theme then
colors = require(mod .. theme)
end
end
if vim.tbl_isempty(colors) then
return false
end
return colors