skift.nvim/lua/skift/config.lua
2026-05-17 17:12:35 +02:00

22 lines
426 B
Lua

---@class Config
local defaults = {
transparent = false,
bold = true,
italic = true,
italic_comments = true,
on_colors = function(colors) end,
on_highlights = function(highlights, colors) end,
}
---@return Config
local config = {}
function config:merge(other)
for key, value in pairs(other or {}) do
self[key] = value
end
end
return setmetatable(config, {
__index = defaults,
})