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

[Bug]: Underline Highlight Color #962

Open
1 task done
0xJWLabs opened this issue Sep 4, 2024 · 1 comment
Open
1 task done

[Bug]: Underline Highlight Color #962

0xJWLabs opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@0xJWLabs
Copy link

0xJWLabs commented Sep 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Does anyone know why does my underline highlight color look like this?
highlight_bufferline

What did you expect to happen?

Highlight correctly

Config

Additional Information

...

commit

No response

@0xJWLabs 0xJWLabs added the bug Something isn't working label Sep 4, 2024
@sohanemon
Copy link

You can remove the separator_style and manually adjust the underline color using highlight.close_button_selected.
image

Here is an example configuration that resolves the issue:

{
    "akinsho/bufferline.nvim",
    event = "VeryLazy",
    opts = {
      options = {
        indicator = {
          style = "underline",
        },
        separator_style = { "", "" }, -- important
        always_show_bufferline = true,
      },
      highlights = {
        indicator_selected = {
          fg = vim.g.primary,
          sp = vim.g.primary,
          underline = true,
        },
        buffer_selected = {
          fg = vim.g.primary,
          bg = "NONE",
          bold = true,
          underline = true,
          sp = vim.g.primary,
        },
        close_button_selected = {
          fg = vim.g.primary,
          bg = "NONE",
          underline = true,
          sp = vim.g.primary,
        },
      },
    },
  }

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

2 participants