akinsho / bufferline.nvim

A snazzy bufferline for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request]: Text alignment in buffer tabs

mariuswinger opened this issue · comments

What?

Would like the option to choose text alignment in buffer tabs (i.e. mode="buffers"). Could not find any options for doing this in the config. There is an option for aligning the text in the offset area, so I imagine it will be something similar to that: A simple buffer_text_alignment option in the config allowing 'center' | 'left' | 'right'. This might of course be more complicated than it seems at a first glance due to all the other possible options (e.g. separator style might be slanted, close button might or might not be present), so I imagine it would be easiest to have it for the 'thin' setting as a start?

Why?

Just seems like a thing that should be adjustable. Also, it is my personal preference having buffer names left aligned and the centering just does not look that good to me.

commented

@mariuswinger as you say this is actually a fair bit more complicated than it might seems since each tab is sort of put together piece by piece so just shimmying things around is more work than it might seem. I've been on a fairly long journey to refactor the plugin so the various bits can be re-arranged by the user as they please so they can say put diagnostics at the beginning or numbers at the end (since hopefully this will end like 70% of issues I get, although I'm sure it won't).

Tbh that effort is still a ways away and I definitely don't have the time to pursue it anytime soon. Most of my effort in this plugin came during COVID when I had more time, nowadays I really do not and am mainly only looking at v. severe bugs or reviewing other people's PRs.

if anyone decided they wanted to move this piece forward I could help with some v. light guidance but realistically I'm not gonna take this on myself unless I hit some unexpected long patch of free time for this sort of thing.

@akinsho That is completely reasonable. Thank you for the response! I might take a closer look myself if I get the time. Big if.