Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mini.breadcrumbs plugin to show breadcrumbs of current cursor position using treesitter. #983

Open
2 tasks done
231tr0n opened this issue Jun 21, 2024 · 3 comments
Open
2 tasks done
Labels
new-module Request for the new module

Comments

@231tr0n
Copy link

231tr0n commented Jun 21, 2024

Contributing guidelines

Module(s)

mini.breadcrumbs

Description

Is there any plan on adding something like nvim-navic to the mini.nvim suite of plugins. For getting breadcrumbs we can leverage treesitter or lsp as nvim-navic does or use nvim_treesitter#statusline() to get the current context and parse it accordingly into proper format.

@231tr0n 231tr0n added the feature-request Request for a feature to existing module label Jun 21, 2024
@echasnovski
Copy link
Owner

Thanks for the suggestion!

I like the idea of this "breadcrumbs" like functionality. My concern is about implementing it efficiently. Having to do more LSP requests on every text change (which I'd imagine what 'nvim-navic' has to do) is hard to do efficiently. Relying on 'nvim-treesitter' is not an option.

Besides, I try to stay away from both LSP specifications and tree-sitter because working with them is a challenge for me.

I'll think about it.

@echasnovski echasnovski added new-module Request for the new module and removed feature-request Request for a feature to existing module labels Oct 7, 2024
@joaomendoncaa
Copy link

joaomendoncaa commented Jan 17, 2025

+1 on breadcrumbs

Many people don't use tabs, and the breadcrumbs are awesome in big files with a lot of nesting.

I've been using this guy these past few years: barbecue.nvim — it's awesome and gets the job done — but it's an archived wrapper around navic, and I wouldn't mind removing one more plugin in favor of a well-thought-out mini module.

I don't have much to add to the above discussion, if I were to implement it myself, I would most likely succumb to treesitter.

Appreciate you.

@krovuxdev
Copy link

Hmm, that sounds like dropbar. I use dropbar quite a lot and I support the idea of breadcrumbs..

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
new-module Request for the new module
Projects
None yet
Development

No branches or pull requests

4 participants