Skip to content

Commit 36cfa67

Browse files
committed
tidy builder doc
1 parent 4de4d84 commit 36cfa67

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lua/nvim-tree/renderer/builder.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ local pad = require "nvim-tree.renderer.components.padding"
55
local icons = require "nvim-tree.renderer.components.icons"
66

77
--- @class Builder
8-
--- @field decorators Decorator[]
8+
--- @field private index number
9+
--- @field private depth number
10+
--- @field private highlights table[] hl_group, line, col_start, col_end arguments for vim.api.nvim_buf_add_highlight
11+
--- @field private lines string[] includes icons etc.
12+
--- @field private markers boolean[] indent markers
13+
--- @field private sign_names string[] line signs
14+
--- @field private root_cwd string absolute path
15+
--- @field private decorators Decorator[] in priority order
916
local Builder = {}
1017
Builder.__index = Builder
1118

1219
local DEFAULT_ROOT_FOLDER_LABEL = ":~:s?$?/..?"
1320

14-
function Builder.new(root_cwd, deco)
21+
function Builder.new(root_cwd, decorators)
1522
return setmetatable({
1623
index = 0,
1724
depth = 0,
@@ -20,7 +27,7 @@ function Builder.new(root_cwd, deco)
2027
markers = {},
2128
sign_names = {},
2229
root_cwd = root_cwd,
23-
deco = deco,
30+
decorators = decorators,
2431
}, Builder)
2532
end
2633

0 commit comments

Comments
 (0)