Skip to content

Commit 3a55b5d

Browse files
committed
remove unused inject_node
1 parent fe466d3 commit 3a55b5d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: lua/nvim-tree/utils.lua

-8
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,6 @@ function M.array_remove_nils(array)
538538
end, array)
539539
end
540540

541-
---@param f fun(node: Node?)
542-
---@return function
543-
function M.inject_node(f)
544-
return function()
545-
f(require("nvim-tree.lib").get_node_at_cursor())
546-
end
547-
end
548-
549541
--- Is the buffer named NvimTree_[0-9]+ a tree? filetype is "NvimTree" or not readable file.
550542
--- This is cheap, as the readable test should only ever be needed when resuming a vim session.
551543
---@param bufnr number|nil may be 0 or nil for current

0 commit comments

Comments
 (0)