echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.45k stars 171 forks source link

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

Open 231tr0n opened 1 week ago

231tr0n commented 1 week ago

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.

echasnovski commented 1 week ago

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.