wishlist icon indicating copy to clipboard operation
wishlist copied to clipboard

Treesitter based "tagbar like" plugin

Open tuckerrc opened this issue 4 years ago • 2 comments

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

tuckerrc avatar Jul 18 '21 22:07 tuckerrc

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

disrupted avatar Jul 19 '21 08:07 disrupted

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.

matu3ba avatar Aug 26 '21 17:08 matu3ba