From ddecf7c1f689812e88f9728f5f5a668e23f7eaa9 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 3 Jun 2024 03:44:15 +0200 Subject: [PATCH] tree: fix trash for selection --- lua/nxvim/plugins/neo-tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nxvim/plugins/neo-tree.lua b/lua/nxvim/plugins/neo-tree.lua index 856cbd2..9e58e1f 100644 --- a/lua/nxvim/plugins/neo-tree.lua +++ b/lua/nxvim/plugins/neo-tree.lua @@ -131,7 +131,7 @@ local config = { inputs.confirm(msg, function(confirmed) if not confirmed then return end for _, node in ipairs(selected_nodes) do - vim.fn.system({ "trash", path }) + vim.fn.system({ "trash", node.path }) end require("neo-tree.sources.manager").refresh(state.name) end)