chore: class new is now generic
This commit is contained in:
@@ -22,7 +22,7 @@ function DecoratorModified:create(opts, explorer)
|
||||
hl_pos = HL_POSITION[opts.renderer.highlight_modified] or HL_POSITION.none,
|
||||
icon_placement = ICON_PLACEMENT[opts.renderer.icons.modified_placement] or ICON_PLACEMENT.none,
|
||||
}
|
||||
o = self:new(o) --[[@as DecoratorModified]]
|
||||
o = self:new(o)
|
||||
|
||||
if not o.enabled then
|
||||
return o
|
||||
|
||||
Reference in New Issue
Block a user