Skip to content

Error when current directory contains invalid symbolic links #493

Closed
@Frederick888

Description

@Frederick888

Noticed a minor issue. When there are any invalid symbolic links, nvim-tree bumps into the following error:

Error executing vim.schedule lua callback: ...zhang/.vim/plugged/nvim-tree.lua/lua/nvim-tree/utils.lua:49: attempt to index local 'path' (a nil value)

To reproduce this issue, for example:

mkdir test
cd !$
touch README.md
ln -s ./nonexist ./foo
nvim README.md

Thanks for this plugin btw :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions