mirror of
https://codeberg.org/pnx/skift.nvim.git
synced 2026-06-16 04:24:57 +02:00
Initial Commit
This commit is contained in:
commit
694515c168
16 changed files with 1325 additions and 0 deletions
22
lua/skift/config.lua
Normal file
22
lua/skift/config.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---@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,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue