nvim-lua / wishlist

A public catalogue of Lua plugins Neovim users would like to see exist
MIT License
235 stars 0 forks source link

Treesitter based "tagbar like" plugin #25

Open tuckerrc opened 3 years ago

tuckerrc commented 3 years ago

What? I would love to see a treesitter based tagbar like plugin. I think treesitter is perfect for this!

Why? I love tagbar but it requires a third party binary (ctags, universal-tags, etc.) to work.

Potential existing implementations:

*Potential pitfalls:*

Different languages may require different kinds of queries (I don't know enough about treesitter to know if this will be an issue).

edit: Added another potential implementation

disrupted commented 3 years ago

agreed, there's symbols-outline.nvim but it uses LSP instead of Treesitter

matu3ba commented 3 years ago

This is afaik currently not feasible for bigger files due to performance issues inside nvim-treesitter.

Even if possible: Why introduce a third type of tagbar? universal-ctags are most efficient/fast for huge to big repos and the lsp can handle the rest.

Treesitter also cant resolve macros and alike without help of the lsp, so I dont exactly understand the argument and the use case.