nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

[feature request] highlight indent for current context

Open luissolanodev opened this issue 2 years ago • 4 comments

I don't know how viable this would be, but If possible it could be handy:

The idea is to have the same functionality as in indent-blankline plugin for highlighting the current context:

https://user-images.githubusercontent.com/29529436/136448878-1a6e6b86-b2e0-4185-b9c5-bce69da183b7.mp4

this is done with treesitter of course, and it's far from perfect even when having various nodes specified in the config file (check the docs for this).

So I don't know how that could relate to this plugin but as I said, it could be a handy feature in my opinion. I think VSCode does exactly this:

https://user-images.githubusercontent.com/29529436/136449585-611aaa98-740a-4429-a007-7b5133927f1b.mp4

(this isn't me using VSCode)

luissolanodev avatar Oct 07 '21 19:10 luissolanodev

let g:nvim_tree_indent_markers=1

kyazdani42 avatar Oct 08 '21 17:10 kyazdani42

Sorry maybe I didn't explain well. I am refering to the fact that the indent marker changes its color whenever you open a folder or a file so it can be more noticeable.

luissolanodev avatar Oct 08 '21 19:10 luissolanodev

ah sorry i misunderstood. Not sure how complicated that would be, but i don't plan on implementing that myself. Indent markers, when displayed, always show indentation of opened directory. The feature you describe is more of a per node highlighting of the indent markers and i guess this would be quite complicated to implement in the current state of the plugin.

kyazdani42 avatar Oct 08 '21 19:10 kyazdani42

This is a nice Quality Of Life improvement.

alex-courtis avatar Oct 15 '22 04:10 alex-courtis