2023-01-23 05:48:37 +01:00
|
|
|
---@class ConfigMgr
|
2023-03-13 12:31:31 +01:00
|
|
|
---@field private resolved_opts Options
|
2023-01-23 05:48:37 +01:00
|
|
|
|
|
|
|
---@class Options
|
2023-03-13 12:31:31 +01:00
|
|
|
---@field bold boolean
|
|
|
|
---@field italic boolean
|
|
|
|
---@field underline boolean
|
|
|
|
---@field comment_italics boolean
|
2023-01-23 05:48:37 +01:00
|
|
|
|
|
|
|
---@type ConfigMgr
|
|
|
|
local M = {
|
2023-03-14 03:09:44 +01:00
|
|
|
resolved_opts = {
|
|
|
|
bold = true,
|
|
|
|
italic = true,
|
|
|
|
underline = true,
|
|
|
|
comment_italics = true,
|
|
|
|
},
|
2023-01-23 05:48:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
---Get GruberDarker user preferences
|
2023-03-13 12:31:31 +01:00
|
|
|
---@return Options
|
2023-01-23 05:48:37 +01:00
|
|
|
---@nodiscard
|
|
|
|
function M.get_resolved_opts()
|
2023-03-14 03:09:44 +01:00
|
|
|
return M.resolved_opts
|
2023-01-23 05:48:37 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
---Set GruberDarker colorscheme options
|
|
|
|
---@param opts Options
|
|
|
|
function M.set(opts)
|
2023-03-14 03:09:44 +01:00
|
|
|
M.resolved_opts = vim.tbl_deep_extend("force", M.resolved_opts, opts)
|
2023-01-23 05:48:37 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|