folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.11k stars 173 forks source link

feature: Add code context to statusline or winbar #526

Closed 231tr0n closed 2 days ago

231tr0n commented 2 days ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

Since trouble provides symbol outlines with v3, I taught it would be cool if trouble.nvim adds code context support which can be displayed in statusline or winbar.

Describe the solution you'd like

Provide a customizable function which can be used to display current code context in winbar or statusline.

Describe alternatives you've considered

nvim-navic

Additional context

No response

folke commented 2 days ago

you can easily implement this yourself using the same trouble output, but maybe a different format and setting it to winbar.