@@ -890,12 +890,12 @@ Require and register it during |nvim-tree-setup|:
890890<
891891Contents of `my- decorator.lua ` :
892892>lua
893- ---@class (exact) MyDecorator: nvim_tree.api.decorator. Decorator
893+ ---@class (exact) MyDecorator: nvim_tree.api.Decorator
894894 ---@field private my_icon1 nvim_tree.api.decorator.highlighted_string
895895 ---@field private my_icon2 nvim_tree.api.decorator.highlighted_string
896896 ---@field private my_icon_node nvim_tree.api.decorator.highlighted_string
897897 ---@field private my_highlight_group string
898- local MyDecorator = require("nvim-tree.api").decorator. Decorator:extend()
898+ local MyDecorator = require("nvim-tree.api").Decorator:extend()
899899
900900 ---Mandatory constructor :new() will be called once per tree render, with no arguments.
901901 function MyDecorator:new()
@@ -1366,7 +1366,7 @@ Config: renderer *nvim-tree-config-renderer*
13661366 • {symlink_destination}? (`boolean ` , default: `true` ) Appends an
13671367 arrow followed by the target of the
13681368 symlink.
1369- • {decorators} ? (`(string |nvim_tree.api.decorator. Decorator)[]` )
1369+ • {decorators} ? (`(string |nvim_tree.api.Decorator)[]` )
13701370 (default:
13711371 `{ "Git", "Open", "Hidden", "Modified", "Bookmark", "Diagnostics", "Copied", "Cut", }`)
13721372 • {highlight_git}? (`nvim_tree.config.renderer.highlight ` )
@@ -2362,6 +2362,9 @@ Following is the default configuration, see |nvim_tree.config| for details. >lua
23622362 },
23632363 }
23642364<
2365+
2366+
2367+
23652368==============================================================================
23662369API *nvim-tree-api*
23672370
@@ -3200,7 +3203,7 @@ winid({opts}) *nvim_tree.api.tree.winid()*
32003203==============================================================================
32013204API: Decorator *nvim-tree-api-decorator*
32023205
3203- *nvim_tree.api.decorator. Decorator*
3206+ *nvim_tree.api.Decorator*
32043207 Extends: | nvim_tree.Class |
32053208
32063209 Abstract Decorator interface
@@ -3209,27 +3212,23 @@ API: Decorator *nvim-tree-api-decorator*
32093212 • {enabled} (`boolean ` )
32103213 • {highlight_range} (`nvim_tree.api.decorator.highlight_range` )
32113214 • {icon_placement} (`nvim_tree.api.decorator.icon_placement` )
3212- • {icon_node} (`fun(self: nvim_tree.api.decorator.Decorator, node: nvim_tree.api.Node): nvim_tree.api.decorator.highlighted_string?`)
3213- See
3214- | nvim_tree.api.decorator.Decorator:icon_node() | .
3215- • {icons} (`fun(self: nvim_tree.api.decorator.Decorator, node: nvim_tree.api.Node): nvim_tree.api.decorator.highlighted_string[]?`)
3216- See | nvim_tree.api.decorator.Decorator:icons() | .
3217- • {highlight_group} (`fun(self: nvim_tree.api.decorator.Decorator, node: nvim_tree.api.Node): string?`)
3218- See
3219- | nvim_tree.api.decorator.Decorator:highlight_group() | .
3220- • {define_sign} (`fun(self: nvim_tree.api.decorator.Decorator, icon: nvim_tree.api.decorator.highlighted_string?)`)
3221- See
3222- | nvim_tree.api.decorator.Decorator:define_sign() | .
3223-
3224-
3225- *nvim_tree.api.decorator.Decorator:define_sign()*
3226- Decorator:define_sign({icon} )
3215+ • {icon_node} (`fun(self: nvim_tree.api.Decorator, node: nvim_tree.api.Node): nvim_tree.api.decorator.highlighted_string?`)
3216+ See | nvim_tree.api.Decorator:icon_node() | .
3217+ • {icons} (`fun(self: nvim_tree.api.Decorator, node: nvim_tree.api.Node): nvim_tree.api.decorator.highlighted_string[]?`)
3218+ See | nvim_tree.api.Decorator:icons() | .
3219+ • {highlight_group} (`fun(self: nvim_tree.api.Decorator, node: nvim_tree.api.Node): string?`)
3220+ See | nvim_tree.api.Decorator:highlight_group() | .
3221+ • {define_sign} (`fun(self: nvim_tree.api.Decorator, icon: nvim_tree.api.decorator.highlighted_string?)`)
3222+ See | nvim_tree.api.Decorator:define_sign() | .
3223+
3224+
3225+ Decorator:define_sign({icon} ) *nvim_tree.api.Decorator:define_sign()*
32273226 Defines a sign. This should be called in the constructor.
32283227
32293228 Parameters: ~
32303229 • {icon} (`nvim_tree.api.decorator.highlighted_string?` )
32313230
3232- *nvim_tree.api.decorator .Decorator:highlight_group()*
3231+ *nvim_tree.api.Decorator:highlight_group()*
32333232Decorator:highlight_group({node} )
32343233 Abstract: optionally implement to provide one highlight group to apply to
32353234 your highlight_range.
@@ -3240,8 +3239,7 @@ Decorator:highlight_group({node})
32403239 Return: ~
32413240 (`string ?` ) highlight_group
32423241
3243- *nvim_tree.api.decorator.Decorator:icon_node()*
3244- Decorator:icon_node({node} )
3242+ Decorator:icon_node({node} ) *nvim_tree.api.Decorator:icon_node()*
32453243 Abstract: optionally implement to set the node's icon
32463244
32473245 Parameters: ~
@@ -3250,7 +3248,7 @@ Decorator:icon_node({node})
32503248 Return: ~
32513249 (`nvim_tree.api.decorator.highlighted_string?` ) icon_node
32523250
3253- Decorator:icons({node} ) *nvim_tree.api.decorator .Decorator:icons()*
3251+ Decorator:icons({node} ) *nvim_tree.api.Decorator:icons()*
32543252 Abstract: optionally implement to provide icons and the highlight groups
32553253 for your icon_placement.
32563254
@@ -3281,7 +3279,7 @@ API: Class *nvim-tree-api-class*
32813279
32823280
32833281Class:as({class} ) *nvim_tree.Class:as()*
3284- Return object if :is otherwise nil
3282+ Return object if | nvim_tree.Class :is() | otherwise nil
32853283
32863284 Parameters: ~
32873285 • {class} (`any` )
0 commit comments