Skip to content

Commit be72e4c

Browse files
committed
reverts
1 parent 5434402 commit be72e4c

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

lua/neo-tree/sources/common/file-items.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ local function create_item(context, path, _type, bufnr)
199199
if item.type == "link" then
200200
---@cast item neotree.FileItem.Link
201201
item.is_link = true
202-
item.link_to = uv.fs_realpath(path)
202+
item.link_to = uv.fs_readlink(path)
203203
if item.link_to then
204204
local link_to_stat = uv.fs_stat(item.path)
205205
if link_to_stat then

tests/mininit.lua

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,3 @@ vim.cmd.source(root_dir .. "/plugin/neo-tree.lua")
1616

1717
vim.g.mapleader = " "
1818
vim.keymap.set("n", "<Leader>e", "<Cmd>Neotree<CR>")
19-
require("neo-tree").setup({
20-
trash = {
21-
---@type neotree.trash.FunctionGenerator
22-
command = function(paths)
23-
if not setup then
24-
return nil -- defer to built-ins
25-
end
26-
return function()
27-
for i, p in ipairs(paths) do
28-
-- ... logic to trash the given paths
29-
if something_failed then
30-
return false, err
31-
end
32-
end
33-
34-
return true
35-
end
36-
end,
37-
},
38-
})

0 commit comments

Comments
 (0)