move lib.get_nodes to Explorer

This commit is contained in:
Alexander Courtis
2024-10-21 11:53:07 +11:00
parent 7324fb1bf0
commit 8994c1e1ef
3 changed files with 7 additions and 9 deletions

View File

@@ -12,13 +12,6 @@ local M = {
target_winid = nil,
}
---Api.tree.get_nodes
---@return Node[]?
function M.get_nodes()
local explorer = core.get_explorer()
return explorer and explorer:clone()
end
function M.set_target_win()
local id = vim.api.nvim_get_current_win()
local tree_id = view.get_winnr()