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

Display line count next to file names

Open
#3,274 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Feature request related to a problem

Having line count visible in the IDE file tree is useful because it gives instant context about a file without opening it.

  • Quick size awareness → Spot large or complex files immediately.
  • Better navigation → Know whether you’re opening a small tweak or a huge module.
  • Refactoring hints → Oversized files often signal architectural issues.
  • Code review planning → Helps estimate effort and prioritize work.
  • AI-era control → Detect when generated code makes files grow too much.

Describe the solution you'd like

This is what I imagine

Image

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

No file, test, or entry point is named in the issue. Start by locating the file-tree rendering code and existing tests, then determine how line counts should appear beside file names. Done means the tree displays accurate line counts next to file names while preserving existing navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
devtools
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.