nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.63k stars 212 forks source link

FEATURE: `source` api for custom neo-tree extensions / interop with other plugins #1545

Open ttytm opened 1 month ago

ttytm commented 1 month ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

For example current sources are:

https://github.com/nvim-neo-tree/neo-tree.nvim/blob/206241e451c12f78969ff5ae53af45616ffc9b72/README.md?plain=1#L482-L490

There a several more use cases that would benefit from a tree view. For example tags in a knowledge-base(like obsidian) or when using bookmarks plugins. Neo-tree could allow for a uniform "tree-experience" and distinct itself even more from other tree plugins by proving an API to create custom sources.

Describe the solution you'd like.

An API for sources, that allows to pass tree node data in a defined format so that it can be rendered as a custom source.

Describe alternatives you've considered.

No response

Additional Context

No response

miversen33 commented 1 month ago

@pysan3 is doing a pretty large rewrite of the core and I want to say something like this was included in that scope. I will let them confirm or deny this though as I do not remember exactly.