chore: class new is now generic

This commit is contained in:
Alexander Courtis
2024-10-28 14:00:52 +11:00
parent 5647bc3c7c
commit 9b365279df
18 changed files with 26 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ function DecoratorHidden:create(opts, explorer)
hl_pos = HL_POSITION[opts.renderer.highlight_hidden] or HL_POSITION.none,
icon_placement = ICON_PLACEMENT[opts.renderer.icons.hidden_placement] or ICON_PLACEMENT.none,
}
o = self:new(o) --[[@as DecoratorHidden]]
o = self:new(o)
if opts.renderer.icons.show.hidden then
o.icon = {