chore: resolve undefined-field

This commit is contained in:
Alexander Courtis
2024-10-26 15:35:18 +11:00
parent 44281f7999
commit 009b2c996e
5 changed files with 7 additions and 7 deletions

View File

@@ -7,8 +7,8 @@ local Node = require("nvim-tree.node")
---@field group_next DirectoryNode? -- If node is grouped, this points to the next child dir/link node
---@field nodes Node[]
---@field open boolean
---@field watcher Watcher?
---@field hidden_stats table? -- Each field of this table is a key for source and value for count
---@field private watcher Watcher?
local DirectoryNode = Node:new()
---Static factory method
@@ -31,11 +31,11 @@ function DirectoryNode:create(explorer, parent, absolute_path, name, fs_stat)
fs_stat = fs_stat,
git_status = nil,
hidden = false,
is_dot = false,
name = name,
parent = parent,
watcher = nil,
diag_status = nil,
is_dot = false,
has_children = has_children,
group_next = nil,