chore: add type annotations to (almost) all functions
This commit is contained in:
@@ -8,6 +8,9 @@ local Iterator = require "nvim-tree.iterators.node-iterator"
|
||||
|
||||
local M = {}
|
||||
|
||||
---@param node Node
|
||||
---@param projects table
|
||||
---@param unloaded_bufnr number|nil
|
||||
local function refresh_nodes(node, projects, unloaded_bufnr)
|
||||
Iterator.builder({ node })
|
||||
:applier(function(n)
|
||||
@@ -22,6 +25,8 @@ local function refresh_nodes(node, projects, unloaded_bufnr)
|
||||
:iterate()
|
||||
end
|
||||
|
||||
---@param parent_node table
|
||||
---@param projects table
|
||||
function M.reload_node_status(parent_node, projects)
|
||||
local toplevel = git.get_toplevel(parent_node.absolute_path)
|
||||
local status = projects[toplevel] or {}
|
||||
|
||||
Reference in New Issue
Block a user