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

Feature Request: Different styles and/or more customization options

Open alonsoC1s opened this issue 4 years ago • 4 comments

Hello! First of all thanks for the excellent work. As the title says, I would like to see more support for different styles. For instances, a powerline look that matches better with "powerline style" statusbars.

alonsoC1s avatar Jun 04 '21 18:06 alonsoC1s

Can you provide clear examples of what you want?

TBH I don't think I'll implement it myself because I have no interest for it and I don't have enough bandwidth for now, but a clean & concise PR would be welcome.

romgrk avatar Jun 05 '21 17:06 romgrk

Thanks for the quick response! I was thinking somethin like the bufferline included with airlinevim:

I would love to do this myself but I am not experienced with Lua. If you could point me to the relevant files I might be able to propose a PR soon.

alonsoC1s avatar Jun 09 '21 00:06 alonsoC1s

Sure, layout.lua is in charge of calculating & assigning dimensions for every section of the bar, and render.lua is in charge of rendering each section. Anything that may affect dimensions is calculated in layout. And for render, it's already done in 2 phases (create groups, then render groups) so determining the fg/bg colors for powerline separators shouldn't be too hard. (phase 1 and phase 2)

romgrk avatar Jun 09 '21 16:06 romgrk

Thank you! I'll have a look at them, and maybe I could propose a PR sometime soon. Just have to learn enough Lua

alonsoC1s avatar Jun 11 '21 15:06 alonsoC1s

Would love to get those separators too - looking for a airline-replacement and (tabline regularly crashes)

foersben avatar Apr 17 '23 05:04 foersben

@foersben you can actually get these now— see :h barbar-setup.icons.separator. This issue is only open to track the request of setting the icons up automatically with a preset.

Iron-E avatar Apr 17 '23 16:04 Iron-E

@Iron-E could you give me an example config? I tried:

let g:bufferline.icon_separator_active = ''
let g:bufferline.icon_separator_inactive = ''

and still trying to figure out what colours it. But already the representation is far from the intended result.

:h barbar-setup.icons.separator doesn't exist in my neovim

foersben avatar Apr 18 '23 09:04 foersben

If you haven't, update to the latest version. If that doesn't work, execute :helptags ALL

Iron-E avatar Apr 18 '23 14:04 Iron-E

This feature is currently available to test in #486

cc @foersben

Iron-E avatar May 11 '23 19:05 Iron-E