Skip to content

Commit e2fa0ef

Browse files
committed
Decorator tidy
1 parent 96cff1e commit e2fa0ef

File tree

1 file changed

+10
-12
lines changed
  • lua/nvim-tree/renderer/decorator

1 file changed

+10
-12
lines changed

lua/nvim-tree/renderer/decorator/init.lua

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,21 @@ function Decorator:icons_after(node)
7474
return self:calculate_icons(node)
7575
end
7676

77-
---@diagnostic disable: unused-local
78-
-- luacheck: push no unused args
79-
80-
--- Maybe icons - abstract
77+
--- Maybe icons, optionally implemented
8178
--- @protected
82-
--- @param node table
79+
--- @param _ table node
8380
--- @return HighlightedString[]|nil icons
84-
function Decorator:calculate_icons(node) end
81+
function Decorator:calculate_icons(_)
82+
return nil
83+
end
8584

86-
--- Maybe highlight group - abstract
85+
--- Maybe highlight group, optionally implemented
8786
--- @protected
88-
--- @param node table
87+
--- @param _ table node
8988
--- @return string|nil group
90-
function Decorator:calculate_highlight(node) end
91-
92-
---@diagnostic enable: unused-local
93-
-- luacheck: pop
89+
function Decorator:calculate_highlight(_)
90+
return nil
91+
end
9492

9593
--- Define a sign
9694
--- @protected

0 commit comments

Comments
 (0)