Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Barbar support#3

Merged
uloco merged 4 commits intouloco:mainfrom
James-DeLorenzo:barbar-support
Dec 22, 2022
Merged

Add Barbar support#3
uloco merged 4 commits intouloco:mainfrom
James-DeLorenzo:barbar-support

Conversation

@James-DeLorenzo
Copy link
Contributor

@James-DeLorenzo James-DeLorenzo commented Dec 17, 2022

sample barbar bufferline;
sample_barbar_9

  • plugins.lua is an inactive buffer, not shown in any current window
  • test.py was the last buffer visible, using the alternate highlighting (when highlight_alertnate is false in settings this highlight does not show and shows like plugins.lua)
  • init.lua is the currently open buffer
  • bluloco-dark.lua is a buffer that is visible in a window but not the active window/buffer

samples via Lushify call;
sample_barbar_6
sample_barbar_7

Copy link
Owner

@uloco uloco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this PR :)

I have some minor nitpicks, that would improve things in my opinion:

  • You could use t.type als a fg for all target highlights, so it's better visible
  • I think the alternate buffer is too visible, how about we keep the text as BufferInactive but just highlight the BufferAlternateSign with t.constant?
  • To make this also work with transparent mode, we should add the bgs to the init.lua transparent section.
BufferInactive { theme.BufferInactive, bg = "NONE" },
BufferVisible { BufferCurrent }

BufferVisibleERROR { BufferInactiveERROR },
BufferVisibleHINT { BufferInactiveHINT },

BufferAlternate { BufferInactive, fg = t.tag },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is just too much for a alternate buffer, probalby the sign only would be better, see below

Suggested change
BufferAlternate { BufferInactive, fg = t.tag },
BufferAlternate { BufferInactive },

BufferAlternateIndex { BufferAlternate },
BufferAlternateIcon { BufferAlternateIndex },
BufferAlternateMod { BufferInactiveMod },
BufferAlternateSign { BufferInactiveSign },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blue would be just too close to the actual current one. how about purple for alternate sign?

Suggested change
BufferAlternateSign { BufferInactiveSign },
BufferAlternateSign { BufferInactiveSign, fg = t.constant },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, here's how that looks now;
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, thanks :)

Copy link
Owner

@uloco uloco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you so much again :)

@uloco uloco merged commit 6c54f41 into uloco:main Dec 22, 2022
@James-DeLorenzo James-DeLorenzo deleted the barbar-support branch December 22, 2022 11:57
paponahmedsharad pushed a commit to paponahmedsharad/bluloco.nvim that referenced this pull request Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants