File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ local DecoratorOpened = require("nvim-tree.renderer.decorator.opened")
16
16
17
17
local pad = require (" nvim-tree.renderer.components.padding" )
18
18
19
- --- TODO move all these classes to API meta
20
- --- @class (exact ) HighlightedString
21
- --- @field str string
22
- --- @field hl string[]
23
-
24
19
--- @class (exact ) AddHighlightArgs
25
20
--- @field group string[]
26
21
--- @field line number
Original file line number Diff line number Diff line change 11
11
--- @field enabled boolean
12
12
--- @field highlight_range DecoratorHighlightRange
13
13
--- @field icon_placement DecoratorIconPlacement
14
+
15
+ --- A string for rendering, with optional highlight groups to apply to it
16
+ --- @class (exact ) HighlightedString
17
+ --- @field str string
18
+ --- @field hl string[]
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ local Decorator = require("nvim-tree.renderer.decorator")
2
2
3
3
--- Abstract user decorator, extend to define your own.
4
4
--- Icon and highlight are optional.
5
- --- Constructor will be called once per tree render, with no arguments:
5
+ --- Mandatory constructor will be called once per tree render, with no arguments:
6
6
--- Must call super passing DecoratorArgs: MyDecorator.super.new(self, args)
7
7
--- Must call define_sign, when using "signcolumn"
8
8
--- See example at end.
9
9
10
10
--- @class (exact ) UserDecorator : Decorator
11
11
local UserDecorator = Decorator :extend ()
12
12
13
- --- Override this method to provide icons and the highlight groups to apply to them
13
+ --- Override this method to provide icons and the highlight groups to apply to DecoratorIconPlacement
14
14
--- @param node Node
15
15
--- @return HighlightedString[] ? icons
16
16
function UserDecorator :calculate_icons (node )
You can’t perform that action at this time.
0 commit comments