Refacto palette and theme, added more colors

This commit is contained in:
2024-02-18 16:46:13 +01:00
parent 8a91acbe19
commit e4cfb6ebd0
15 changed files with 431 additions and 240 deletions

26
lua/astrobox/config.lua Normal file
View File

@@ -0,0 +1,26 @@
---@enum Contrast
local CONTRASTS = {
soft = "soft",
medium = "medium",
hard = "hard",
}
---@class Config
---@field contrast Contrast
---@field float_no_borders boolean
local M = {
---@type Config
default = {
contrast = CONTRASTS.medium,
float_no_borders = true,
},
}
---@param user_cfg Config
---@return Config
function M.make_config(user_cfg)
return user_cfg and vim.tbl_extend("force", M.default, user_cfg) or M.default
end
return M