2022-09-05 12:06:03 +00:00
|
|
|
local M = {}
|
2021-04-19 12:39:35 +00:00
|
|
|
|
2022-09-03 21:47:25 +00:00
|
|
|
---@class Config
|
2022-09-05 12:06:03 +00:00
|
|
|
local defaults = {
|
|
|
|
style = "storm",
|
|
|
|
styles = {
|
|
|
|
comments = "italic",
|
|
|
|
functions = "NONE",
|
|
|
|
keywords = "italic",
|
|
|
|
variables = "NONE",
|
|
|
|
},
|
|
|
|
colors = {},
|
|
|
|
darkFloat = true,
|
|
|
|
darkSidebar = true,
|
|
|
|
dayBrightness = 0.3,
|
|
|
|
dev = false,
|
|
|
|
hideInactiveStatusline = false,
|
|
|
|
lualineBold = false,
|
|
|
|
sidebars = {},
|
|
|
|
terminalColors = true,
|
|
|
|
transparent = false,
|
|
|
|
transparentSidebar = false,
|
2021-04-19 12:39:35 +00:00
|
|
|
}
|
2021-04-17 19:22:55 +00:00
|
|
|
|
2022-09-05 12:06:03 +00:00
|
|
|
---@type Config
|
|
|
|
M.options = {}
|
|
|
|
|
|
|
|
function M.setup(options)
|
|
|
|
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
|
2021-05-12 09:19:28 +00:00
|
|
|
end
|
2021-04-25 13:50:02 +00:00
|
|
|
|
2022-09-05 14:09:28 +00:00
|
|
|
function M.extend(options)
|
|
|
|
M.options = vim.tbl_deep_extend("force", {}, M.options or defaults, options or {})
|
|
|
|
end
|
|
|
|
|
2022-09-05 12:06:03 +00:00
|
|
|
M.setup()
|
|
|
|
|
|
|
|
return M
|