Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bufferline background breaks when Catppuccin is set to transparent background and bufferline style is styled as non-default #704

Open
coryshaw1 opened this issue May 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@coryshaw1
Copy link

coryshaw1 commented May 17, 2024

Description

I'm trying to use akinsho/bufferline.nvim along with Catppuccin, but using bufferline.nvim's separator style of "slant". When using this and setting transparent_background and term_colors = true, the background of the bufferline tabs is odd and not transparent.

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202

Terminal and multiplexer

kitty 0.25.2 and tmux 3.4

Catppuccin version / branch / rev

"catppuccin": { "branch": "main", "commit": "d97387aea8264f484bb5d5e74f2182a06c83e0d8" }

Steps to reproduce

Catppuccin opts

{
    transparent_background = true,
    background = {
      light = "latte",
      dark = "macchiato",
    },
    term_colors = true,
    integrations = {
      bufferline = true,
    },
  }
}

Bufferline opts

require("bufferline").setup {
  options = {
    diagnostics = "nvim_lsp",
    middle_mouse_command = "bdelete! %d",
    right_mouse_command = nil,
    numbers = "ordinal",
    separator_style = "slant",
  },
  highlights = require("catppuccin.groups.integrations.bufferline").get(),
}

Expected behavior

The ideal behavior would be for the background of the bufferline's entirety to be transparent with a slightly darker opaque background like the "With transparent_background disabled" screenshot below.

Actual behavior

With transparent_background enabled
image

With transparent_background disabled
image

Repro

No response

@command-z-z
Copy link

the same problem, have any plans to fix it?

@swit33
Copy link

swit33 commented Jun 3, 2024

I can confirm that this happens for me too.

@coryshaw1
Copy link
Author

coryshaw1 commented Jun 7, 2024

For a workaround, I was able to get it somewhat better looking by setting up the dim_inactive in opts and disabling bufferline in integrations. This does require you to manually set the highlights in bufferline if you haven't already.

Catppuccin opts:

dim_inactive = {
  enabled = true,
  shade = "dark",
  percentage = 0.15,
},
integrations = {
  bufferline = false,
},

bufferline opts:

highlights = require("catppuccin.groups.integrations.bufferline").get {
  styles = { "italic", "bold" },
},

https://i.imgur.com/sPIK86w.png

I still think it would look better with the separator_bg across the entire bar and opaque, but this may be a limitation of the highlights. I would need someone else with more experience to confirm this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants