mirror of
https://github.com/paulo-granthon/hyper.nvim
synced 2025-05-16 15:08:13 +00:00
33 lines
633 B
Lua
33 lines
633 B
Lua
local M = {}
|
|
|
|
local ok, error = pcall(require, 'hyper.error')
|
|
if not ok then
|
|
return vim.api.nvim_err_writeln(require('hyper.const.error').import)
|
|
end
|
|
|
|
---@type Config
|
|
local defaults = {
|
|
colors = 'hyper',
|
|
highlights = 'hyper',
|
|
|
|
color_overrides = {},
|
|
highlights_overrides = {},
|
|
}
|
|
|
|
---@type Config
|
|
M.options = {}
|
|
|
|
---@param options Config|nil
|
|
function M.setup(options)
|
|
M.options = vim.tbl_deep_extend("force", {}, defaults, options or {})
|
|
end
|
|
|
|
---@param options Config|nil
|
|
function M.extend(options)
|
|
M.options = vim.tbl_deep_extend("force", {}, M.options or defaults, options or {})
|
|
end
|
|
|
|
M.setup()
|
|
|
|
return M
|