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

Separate active buffer highlight from vim.opt.cursorline

Open
#2,013 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Can this functionality be implemented utilising API?
I do not think so

Is your feature request related to a problem? Please describe.
If I have disabled vim.opt.cursorline then NvimTree wont highlight active buffer.

Describe the solution you'd like
Custom highlight - not dependent on nvim, but it would only depends on NvimTree config

Describe alternatives you've considered
We can make hack with autocmd that enables cursorline for NvimTree, but is not 'fun'.

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 files or tests. Start by tracing NvimTree's active-buffer highlighting and its relationship to vim.opt.cursorline, then determine how a NvimTree-only highlight setting could be configured. Done means active-buffer highlighting works without requiring the user's global cursorline option.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vim
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.