File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
lua/nvim-tree/renderer/decorator Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -74,23 +74,21 @@ function Decorator:icons_after(node)
74
74
return self :calculate_icons (node )
75
75
end
76
76
77
- --- @diagnostic disable : unused-local
78
- -- luacheck: push no unused args
79
-
80
- --- Maybe icons - abstract
77
+ --- Maybe icons, optionally implemented
81
78
--- @protected
82
- --- @param node table
79
+ --- @param _ table node
83
80
--- @return HighlightedString[] | nil icons
84
- function Decorator :calculate_icons (node ) end
81
+ function Decorator :calculate_icons (_ )
82
+ return nil
83
+ end
85
84
86
- --- Maybe highlight group - abstract
85
+ --- Maybe highlight group, optionally implemented
87
86
--- @protected
88
- --- @param node table
87
+ --- @param _ table node
89
88
--- @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
94
92
95
93
--- Define a sign
96
94
--- @protected
You can’t perform that action at this time.
0 commit comments