mirror of
https://codeberg.org/pnx/skift.nvim.git
synced 2026-06-16 12:34:54 +02:00
22 lines
426 B
Lua
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,
|
|
})
|