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

More Fields For sort.sorter Function

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

Nobody has claimed this yet.

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

Description

Related to #2614

As the title, I want the node type has more field, ie. GitStatus, for deeper customization.

It could be awesome if I can use a sorter which can put all git ignored file at the end. I'm not familiar with Lua, so I'm sorry I can't add it myself.

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

Start by locating the sort.sorter implementation and the node type, then read related issue #2614 for context. Confirm how GitStatus is represented and how sorter callbacks receive nodes; done means the added node fields are available for custom sorting, including placing ignored files last.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
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.