gruber-darker.nvim/lua/gruber-darker/config.lua

34 lines
624 B
Lua
Raw Normal View History

---@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 = {
2023-03-14 03:09:44 +01:00
resolved_opts = {
bold = true,
italic = true,
underline = true,
comment_italics = true,
},
}
---Get GruberDarker user preferences
---@return Options
---@nodiscard
function M.get_resolved_opts()
2023-03-14 03:09:44 +01:00
return M.resolved_opts
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)
end
return M