nvim-tree / nvim-tree/nvim-tree.lua

[feature request] highlight indent for current context

Open
#701 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature request PR please QOL
Dominant language
Lua
Stars
8.6k
Forks
639
Avg merge
1d 14h
Merged PRs (30d)
2

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start by reviewing the linked indent-blankline documentation and examples, then inspect nvim-tree.lua’s rendering and configuration entry points to determine whether tree-sitter-based current-context highlighting fits; define supported contexts and completion criteria before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.