* refactor(#2875): multi instance renderer * refactor(#2875): multi instance renderer * refactor(#2875): multi instance renderer * refactor(#2875): multi instance renderer * node classes and constructors * node methods * refactor(#2875): multi instance renderer * node classes and constructors * explorer is a directory node * extract methods from explore_node * extract methods from explore_node * extract methods from explore_node * extract methods from lib * use .. name for root node for compatibility * use node.explorer * extract node factory, remove unused code * factories for all nodes, add RootNode * factories for all nodes, add RootNode * use factory pattern for decorators * note regression and commit * fix dir git status regression * destroy nodes, not explorer * add BaseNode:is * revert changes to create-file, handle in #2924 * extract methods from explorer * extract methods from explorer * extract methods from explorer * use Node everywhere in luadoc * extract methods from lib * extract methods from lib * lint * remove unused code * don't call methods on fake root node * get_node_at_cursor returns explorer (root) node instead of { name = '..' } * remove unused inject_node * refactor(#2875): multi instance renderer * refactor(#2875): multi instance renderer * refactor(#2875): multi instance renderer * extract methods from lib * node factory uses stat only * temporary DirectoryNode casting until method extraction into child classes * lua-language-server 3.10.5 -> 3.11.0 * explicitly call Explorer constructor * normalise explorer RootNode new call, tidy annotations
This commit is contained in:
committed by
GitHub
parent
c9104a5d07
commit
38aac09151
@@ -14,7 +14,7 @@ local M = {
|
||||
}
|
||||
|
||||
---Diagnostics highlight group and position when highlight_diagnostics.
|
||||
---@param node table
|
||||
---@param node Node
|
||||
---@return HL_POSITION position none when no status
|
||||
---@return string|nil group only when status
|
||||
function M.get_highlight(node)
|
||||
@@ -38,7 +38,7 @@ function M.get_highlight(node)
|
||||
end
|
||||
|
||||
---diagnostics icon if there is a status
|
||||
---@param node table
|
||||
---@param node Node
|
||||
---@return HighlightedString|nil modified icon
|
||||
function M.get_icon(node)
|
||||
if node and M.config.diagnostics.enable and M.config.renderer.icons.show.diagnostics then
|
||||
|
||||
@@ -59,7 +59,7 @@ end
|
||||
---@param depth integer
|
||||
---@param idx integer
|
||||
---@param nodes_number integer
|
||||
---@param node table
|
||||
---@param node Node
|
||||
---@param markers table
|
||||
---@return HighlightedString[]
|
||||
function M.get_indent_markers(depth, idx, nodes_number, node, markers, early_stop)
|
||||
@@ -79,7 +79,7 @@ function M.get_indent_markers(depth, idx, nodes_number, node, markers, early_sto
|
||||
return { str = str, hl = { "NvimTreeIndentMarker" } }
|
||||
end
|
||||
|
||||
---@param node table
|
||||
---@param node Node
|
||||
---@return HighlightedString[]|nil
|
||||
function M.get_arrows(node)
|
||||
if not M.config.icons.show.folder_arrow then
|
||||
|
||||
Reference in New Issue
Block a user