Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
896 stars 17 forks source link

[Feature]: Display line number of treesitter and lsp symbols in dropbar #154

Open marcelarie opened 2 months ago

marcelarie commented 2 months ago

Problem

Can't know in what line number a dropbar item is to access quickly.

Expected behavior

To show the line start number (and maybe give the option to show the end line number for functions) next to the item.

Example: [f] -> folder icon [fi] -> file icon [fu] -> function icon

[f] src > [f] components > [f] ClientConditions > [fi] ClientConditions.tsx > [fu] ClientConditions(300,321) > π flexDirection(313)
                           v end line number
[fu] ClientConditions(300,321) 
                       ^ start line number

 π flexDirection(313)
                   ^ only start line number

This could be activated in the config, given that it might not be a default for everyone, but I think it is really useful.

Bekaboo commented 2 months ago

Thanks for the suggestion! Will consider adding this feature if more people request it.