Skip to content

Tab separator drawing tweak #91

@sfsam

Description

@sfsam

I use a fork of this plugin in which I've made a small adjustment to how the tab separator lines are drawn. It's been a while and I'm still using it so I thought I'd share it in case it is something you'd think is worthwhile.

There is an option, g:buftabline_separators, which allows the user to turn tab separator drawing on or off. I've changed this option from a boolean to a number: 0, 1, or 2. The first two options (0 and 1) work like the original boolean. The third (2) draws separators only between adjacent tabs of hidden buffers since those have the same background color. I don't need a separator between the tab of a hidden buffer and the active one since the background colors already provide contrast. In addition, I've added an optional highlight group to allow styling of the separator. In my case, I've used this to make the separator a bit lighter than the text.

Image Image

Can you tell the difference? Admittedly, this is a small aesthetic tweak and may be of little or no value to others. But I stare at Vim a lot and it has made a difference to me. My fork is here: sfsam@e67df2d.

Thanks for making this! Along with CtrlP I find it indispensable for using Vim. Both should be built-in features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions