Skip to content

add indent markers #43

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 2 commits into from
Jun 20, 2020
Merged

add indent markers #43

merged 2 commits into from
Jun 20, 2020

Conversation

kyazdani42
Copy link
Member

@kyazdani42 kyazdani42 commented Jun 19, 2020

@Akin909 can you review this works as expected for you ? Or tell me if you'd prefer something else.
(add let g:lua_tree_indent_markers = 1 to your init.vim)

fixes #42

@akinsho
Copy link
Contributor

akinsho commented Jun 19, 2020

Wow so quick 😍 I'm not by my laptop atm but will have a look in a bit

@akinsho
Copy link
Contributor

akinsho commented Jun 20, 2020

@kyazdani42 just tried it out and it looks really cool 👍. One thing I noticed which is pretty minor is that the the indent mark for the parent of a directory changes depending on which sub folder is open rather than maintaining it's indent level. Not sure if that makes sense
side-by-side
Lua tree is on the right. The indent marker for the .config ends once the alacritty folder is open and if I close it then extends to the end again. Also I wonder if it can be highlighted more subtly. Anyway this is already pretty great as it is thanks for looking into it so quickly

@kyazdani42
Copy link
Member Author

ah you are right ! i didn't look at the picture from your issue properly

@kyazdani42 kyazdani42 force-pushed the feat/indent-markers branch from 91a1149 to 4f499d9 Compare June 20, 2020 13:36
@kyazdani42
Copy link
Member Author

This should be ok !
You can also change the color by overriding the hl group LuaTreeIndentMarker. By default it will be the same color as the folders.

@akinsho
Copy link
Contributor

akinsho commented Jun 20, 2020

Awesome that works perfectly 🚀 thanks so much for adding this 👍

@kyazdani42 kyazdani42 merged commit 3bcfc70 into master Jun 20, 2020
@kyazdani42 kyazdani42 deleted the feat/indent-markers branch October 9, 2021 09:11
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.

Feature request: indent markers
2 participants