Closed MLFlexer closed 1 month ago
Yea this was an oversight. I thought it was handled but as you can see it is not:
function M.set(user_opts)
user_opts = user_opts or { options = {} }
local color_overrides = user_opts.options.color_overrides or {}
user_opts.options.color_overrides = nil
M.component_opts = set_component_opts(user_opts)
M.opts = util.deep_extend(default_opts, user_opts)
M.sections = util.deep_copy(M.opts.sections)
M.colors = util.deep_extend(get_colors(M.opts.options.theme), color_overrides)
end
will get a fix out
Thanks for the bug report. Your minimal config should now work correctly
With this minimal config:
I get the following error:
It looks like it is expecting the field options to be defined, but it is nil in this case.
It would be great if there was a nil check, or if the example in the readme was changed.