gruber-darker.nvim/lua/gruber-darker/config.lua
2023-03-13 22:09:44 -04:00

34 lines
624 B
Lua

---@class ConfigMgr
---@field private resolved_opts Options
---@class Options
---@field bold boolean
---@field italic boolean
---@field underline boolean
---@field comment_italics boolean
---@type ConfigMgr
local M = {
resolved_opts = {
bold = true,
italic = true,
underline = true,
comment_italics = true,
},
}
---Get GruberDarker user preferences
---@return Options
---@nodiscard
function M.get_resolved_opts()
return M.resolved_opts
end
---Set GruberDarker colorscheme options
---@param opts Options
function M.set(opts)
M.resolved_opts = vim.tbl_deep_extend("force", M.resolved_opts, opts)
end
return M