27 lines
493 B
Lua
27 lines
493 B
Lua
local M = {}
|
|
|
|
local defaults = {
|
|
transparent = false,
|
|
styles = {
|
|
comments = { italic = true },
|
|
functions = { italic = false },
|
|
variables = { italic = false },
|
|
keywords = { italic = false },
|
|
},
|
|
highlights = {},
|
|
}
|
|
|
|
M.options = {}
|
|
|
|
function M.setup(options)
|
|
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
|
|
end
|
|
|
|
function M.extend(options)
|
|
M.options = vim.tbl_deep_extend("force", {}, M.options or defaults, options or {})
|
|
end
|
|
|
|
M.setup()
|
|
|
|
return M
|