akinsho / bufferline.nvim

A snazzy bufferline for Neovim
GNU General Public License v3.0
3.47k stars 195 forks source link

tab height and tab styling #53

Closed siduck closed 3 years ago

siduck commented 3 years ago

how do I increase tab height? also changing tab styling to this : image didnt find anything about tab styling in the example configs

akinsho commented 3 years ago

@siduck76 you can't actually change the tab height in (neo)vim since it's a terminal application all rows are the height of the text based on the font size. Neovim could implement using multiple rows for the tab bar but given the fixed row size constraint I'm not sure that would look right anyway.

Regarding the alternate styling it is in configuration example but it's not really discoverable it's separator_style = "slant" I'll add a note about it in the the help docs

akinsho commented 3 years ago

Keep in mind with the slant style that how it will look will depend on your terminal emulator, some terminal emulators don't do a good job rendering special characters so the triangle characters might look weird. I personally use kitty which is really great.

siduck commented 3 years ago

I use ST and the triangle characters arent visible after all, I do have nerd fonts installed . do I need any other fonts like powerline?

akinsho commented 3 years ago

No that should be enough try in your terminal promt and see what it draws. I don't know anything about ST I assume this means suckless term but I know that usually only the quite new terminal emulators like alacritty and kitty handle all the fancy characters correctly and of those 2 kitty is better at it.

siduck commented 3 years ago

is this that character? image

akinsho commented 3 years ago

I can't really tell from the screen shot @siduck76 the character is you just need to paste it into your terminal and see if it shows a triangle. In my terminal it looks like

Screen Shot 2021-03-02 at 17 21 26
siduck commented 3 years ago

it shows a triangle but converts into an inverted triangle if I press space

https://user-images.githubusercontent.com/59060246/109800953-d8fc5280-7c43-11eb-9b11-d5b181a16a62.mp4

akinsho commented 3 years ago

@siduck76 this seems to be in the realm of terminal emulator behaviour I can't really do anything about how a specific terminal emulator handles certain characters. Maybe you can file a bug upstream so it can be fixed there, I've had to do that in the past with how kitty was handling some of the box characters this plugin uses.

Meanwhile I will clarify in the docs that the slant style has only really been tested with kitty and support will depend entirely on the specific terminal emulator someone uses.

siduck commented 3 years ago

ah I see , btw can you add rounded corners to the tabs? image

akinsho commented 3 years ago

@siduck76 I'm not sure how I would do that? do you know of an ASCII character like the one I posted that has round corners? it would need to be filled on one side for that to work. That's how all the custom styles work they need matching characters that are partially filled since neovim can only just draw existing characters

siduck commented 3 years ago

yep you can use the ones in powerline fonts , something like this https://github.com/beauwilliams/statusline.lua

akinsho commented 3 years ago

Oh I didn't realise that's what you have in mind. I don't really like the look of those since it doesn't really match the aesthetic I'm going for. You can add that in your own config but using separator_style = {'<left-char>', '<right-char>'}

akinsho commented 3 years ago

I'm going to close this out @siduck76 since I think you can achieve the look you'd like in a few different ways either via swapping terminal emulator, submitting an upstream issue if you want to stick with your own, or by adding in your on separators.

NOTE: not all separator chars will work, it will depend on how the character is filled. As I mentioned in the README though I'm pretty opinionated on what I will add to the plugin itself, the general idea is to mirror Doom Emacs/ GUI editors so won't add the type of styles that you wouldn't see in one of those.

siduck commented 3 years ago

separator_style = {'', ''}

image is this right?

siduck commented 3 years ago

st is fine with chars , no problem with that. I think my bufferline config's messed up https://hatebin.com/wbtczwjwhs

akinsho commented 3 years ago

Yeah your highlights should all be within the highlights table and I'm not sure where comment_fg etc. is defined. Have a close read of the example in the README or the help docs that should show you what's wrong with the table. Can't debug anymore atm as I'm at work

towry commented 1 year ago

Remember to disable the transparent mode in your colorscheme setting.

If you have transparent mode on, it will show up like this:

截屏2022-11-30 10 20 14 gruvbox.nvim with bufferline.nvim