@@ -4,25 +4,25 @@ error("Cannot require a meta file")
44local nvim_tree = { api = { decorator = {} } }
55
66--- Highlight group range as per nvim-tree.renderer.highlight_*
7- --- @alias nvim_tree.api.decorator.HighlightRange " none " | " icon " | " name " | " all "
7+ --- @alias nvim_tree.api.decorator.highlight_range nvim_tree.config.renderer.highlight
88
99--- Icon position as per renderer.icons.*_placement
10- --- @alias nvim_tree.api.decorator.IconPlacement " none" | " before " | " after " | " signcolumn " | " right_align "
10+ --- @alias nvim_tree.api.decorator.icon_placement " none" | nvim_tree.config.renderer.icons.placement
1111
1212--- Names of builtin decorators or your decorator classes. Builtins are ordered lowest to highest priority.
13- --- @alias nvim_tree.api.decorator.Name " Git" | " Opened" | " Hidden" | " Modified" | " Bookmarks" | " Diagnostics" | " Copied" | " Cut" | nvim_tree.api.decorator.UserDecorator
13+ --- @alias nvim_tree.api.decorator.types nvim_tree.api.decorator.UserDecorator | " Git" | " Opened" | " Hidden" | " Modified" | " Bookmarks" | " Diagnostics" | " Copied" | " Cut"
1414
1515--- A string for rendering, with optional highlight groups to apply to it
16- --- @class (exact ) nvim_tree.api.HighlightedString
16+ --- @class (exact ) nvim_tree.api.decorator.highlighted_string
1717--- @field str string
1818--- @field hl string[]
1919
2020--- Custom decorator, see :help nvim-tree-decorators
2121---
2222--- @class (exact ) nvim_tree.api.decorator.UserDecorator
2323--- @field protected enabled boolean
24- --- @field protected highlight_range nvim_tree.api.decorator.HighlightRange
25- --- @field protected icon_placement nvim_tree.api.decorator.IconPlacement
24+ --- @field protected highlight_range nvim_tree.api.decorator.highlight_range
25+ --- @field protected icon_placement nvim_tree.api.decorator.icon_placement
2626nvim_tree .api .decorator .UserDecorator = {}
2727
2828--- Create your decorator class
@@ -37,13 +37,13 @@ function nvim_tree.api.decorator.UserDecorator:new() end
3737--- Abstract: optionally implement to set the node's icon
3838---
3939--- @param node nvim_tree.api.Node
40- --- @return nvim_tree.api.HighlightedString ? icon_node
40+ --- @return nvim_tree.api.decorator.highlighted_string ? icon_node
4141function nvim_tree .api .decorator .UserDecorator :icon_node (node ) end
4242
4343--- Abstract: optionally implement to provide icons and the highlight groups for your icon_placement.
4444---
4545--- @param node nvim_tree.api.Node
46- --- @return nvim_tree.api.HighlightedString [] ? icons
46+ --- @return nvim_tree.api.decorator.highlighted_string [] ? icons
4747function nvim_tree .api .decorator .UserDecorator :icons (node ) end
4848
4949--- Abstract: optionally implement to provide one highlight group to apply to your highlight_range.
@@ -55,5 +55,5 @@ function nvim_tree.api.decorator.UserDecorator:highlight_group(node) end
5555--- Define a sign. This should be called in the constructor.
5656---
5757--- @protected
58- --- @param icon nvim_tree.api.HighlightedString ?
58+ --- @param icon nvim_tree.api.decorator.highlighted_string ?
5959function nvim_tree .api .decorator .UserDecorator :define_sign (icon ) end
0 commit comments