Skip to content

Optionally suppress the symlink destination #1396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 5, 2022
Merged

Optionally suppress the symlink destination #1396

merged 4 commits into from
Jul 5, 2022

Conversation

tobywan
Copy link
Contributor

@tobywan tobywan commented Jul 4, 2022

Setting nvim-tree.renderer.symlink_destination=false will prevent the arrow and symlink link_to file
appearing in the tree.
The original symlink name, icons and colour are not affected.

This is useful when nvim-tree.view.adaptive_size = true, because the full path of the node.link_to is used which can mean that the tree window is excessively large for files deep in the file system.
Compare:
symlink_destination-true

symlink_destination-false

@kyazdani42
Copy link
Member

@tobywan looks good to me, just fix the style :)

@tobywan
Copy link
Contributor Author

tobywan commented Jul 4, 2022

Thanks, I pushed a 3rd commit that should have fixed it. Is your comment after that push?

@kyazdani42
Copy link
Member

yes, check the CI :) there is a missing space before the ..

@tobywan
Copy link
Contributor Author

tobywan commented Jul 4, 2022

yes, check the CI :) there is a missing space before the ..

D'Oh!
My bad, spotted the extra leading space but missed that one.

@alex-courtis
Copy link
Member

Not able to review right now, however this is a fantastic option that I will definitely use.

@kyazdani42 kyazdani42 merged commit 38fabe8 into nvim-tree:master Jul 5, 2022
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants