dropbar.nvim icon indicating copy to clipboard operation
dropbar.nvim copied to clipboard

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

Open marcelarie opened this issue 1 year ago • 2 comments

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.

marcelarie avatar Apr 26 '24 10:04 marcelarie

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

Bekaboo avatar Apr 27 '24 07:04 Bekaboo