Are there any statusline plugins that displays breadcrumbs of current position?

One of the few things I miss from VSCode is how it always displays breadcrumbs of the current position in the document, if a language server is being used. For example:

module Foo -> class Bar -> method pow

I have searched for a while, but somehow I can’t find a single plugin that lets me add this to Neovim! Surely somebody must already have implemented this.

Any ideas?

Try adding treesitter status to your current statusline: GitHub - nvim-treesitter/nvim-treesitter: Nvim Treesitter configurations and abstraction layer

Maybe nvim-gps ?

Yep, I was also recommended nvim-gps on a different forum. I initially dismissed it because I didn’t think a good breadcrumbs component could be constructed from a noisy, verbose syntax tree. However apparently custom queries are used to only select the nodes that are interesting, so it actually works really well. I will be contributing queries for the YANG grammar (which I also wrote) as soon as I have time.

1 Like