Skip to content

Commit 89a187b

Browse files
authored
Merge branch 'master' into 2954-remove-unnecessary-lsp-updates
2 parents 58143fc + f7c65e1 commit 89a187b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/nvim-tree/api.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ end
6969

7070
---Inject the node as the first argument if present otherwise do nothing.
7171
---@param fn fun(node: Node, ...): any
72-
---@return fun(node: Node, ...): any
72+
---@return fun(node: Node?, ...): any
7373
local function wrap_node(fn)
7474
return function(node, ...)
7575
node = node or wrap_explorer("get_node_at_cursor")()
@@ -80,8 +80,8 @@ local function wrap_node(fn)
8080
end
8181

8282
---Inject the node or nil as the first argument if absent.
83-
---@param fn fun(node: Node, ...): any
84-
---@return fun(node: Node, ...): any
83+
---@param fn fun(node: Node?, ...): any
84+
---@return fun(node: Node?, ...): any
8585
local function wrap_node_or_nil(fn)
8686
return function(node, ...)
8787
node = node or wrap_explorer("get_node_at_cursor")()

0 commit comments

Comments
 (0)