barbar.nvim
barbar.nvim copied to clipboard
Feature Request: Different styles and/or more customization options
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.
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.
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.
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)
Thank you! I'll have a look at them, and maybe I could propose a PR sometime soon. Just have to learn enough Lua
Would love to get those separators too - looking for a airline-replacement and (tabline regularly crashes)
@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 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
If you haven't, update to the latest version. If that doesn't work, execute :helptags ALL
This feature is currently available to test in #486
cc @foersben