* feat(#2948): add UserDecorator, proof of concept * feat(#2948): add UserDecorator, proof of concept * feat(#2948): add UserDecorator, proof of concept * feat(#2948): add UserDecorator * feat(#2948): add UserDecorator * feat(#2948): add UserDecorator * feat(#2948): add Decorator node icon override * feat(#2948): add nvim_tree.api.* node classes * feat(#2948): extract _meta following nvim pattern * feat(#2948): extract _meta following nvim pattern * feat(#2948): add decorator registry and order * feat(#2948): add decorator registry and order * feat(#2948): tidy * feat(#2948): document API * feat(#2948): document API * feat(#2948): document API * feat(#2948): pass api nodes to user decorators * feat(#2948): document API * feat(#2948): use renderer.decorators to define order and register * feat(#2948): tidy decorator args and complete documentation * feat(#2948): decorator classes specified by prefix rather than suffix * feat(#2948): improve doc * feat(#2948): improve doc * feat(#2948): improve doc * feat(#2948): additional user decorator safety * feat(#2948): create nvim_tree.api.decorator.UserDecorator class in API, add :extend * feat(#2948): improve doc
52 lines
1.3 KiB
Lua
52 lines
1.3 KiB
Lua
---@meta
|
|
error("Cannot require a meta file")
|
|
|
|
--
|
|
-- Nodes
|
|
--
|
|
|
|
---Base Node, Abstract
|
|
---@class (exact) nvim_tree.api.Node
|
|
---@field type "file" | "directory" | "link" uv.fs_stat.result.type
|
|
---@field absolute_path string
|
|
---@field executable boolean
|
|
---@field fs_stat uv.fs_stat.result?
|
|
---@field git_status GitNodeStatus?
|
|
---@field hidden boolean
|
|
---@field name string
|
|
---@field parent nvim_tree.api.DirectoryNode?
|
|
---@field diag_severity lsp.DiagnosticSeverity?
|
|
|
|
---File
|
|
---@class (exact) nvim_tree.api.FileNode: nvim_tree.api.Node
|
|
---@field extension string
|
|
|
|
---Directory
|
|
---@class (exact) nvim_tree.api.DirectoryNode: nvim_tree.api.Node
|
|
---@field has_children boolean
|
|
---@field nodes nvim_tree.api.Node[]
|
|
---@field open boolean
|
|
|
|
---Root Directory
|
|
---@class (exact) nvim_tree.api.RootNode: nvim_tree.api.DirectoryNode
|
|
|
|
---Link mixin
|
|
---@class (exact) nvim_tree.api.LinkNode
|
|
---@field link_to string
|
|
---@field fs_stat_target uv.fs_stat.result
|
|
|
|
---File Link
|
|
---@class (exact) nvim_tree.api.FileLinkNode: nvim_tree.api.FileNode, nvim_tree.api.LinkNode
|
|
|
|
---DirectoryLink
|
|
---@class (exact) nvim_tree.api.DirectoryLinkNode: nvim_tree.api.DirectoryNode, nvim_tree.api.LinkNode
|
|
|
|
--
|
|
-- Various Types
|
|
--
|
|
|
|
---A string for rendering, with optional highlight groups to apply to it
|
|
---@class (exact) nvim_tree.api.HighlightedString
|
|
---@field str string
|
|
---@field hl string[]
|