romgrk / barbar.nvim

The neovim tabline plugin.
2.23k stars 83 forks source link

[feature request] Instead pin icon, show the index number. #379

Closed otavioschwanck closed 1 year ago

otavioschwanck commented 1 year ago

When i pin something is to be used all the time. Instead of the pin icon, would be awesome to show the index of the file so i can just run :BufferGoTo with 100% sure that i will be on the right tab

Iron-E commented 1 year ago

I suppose we can have the icon settings accept a function so that the user can customize them more specifically; that would probably be more broadly-applicable than a specific setting for this feature.

I'll throw up a PR with some examples today or tomorrow.

romgrk commented 1 year ago

There is virtue in simplicity though, a setting would be simpler for the user to configure, and it would mean we don't need to worry about what the user function does (e.g. return's length, errors, etc).