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

[Bug]: Underline Highlight Color

Open 0xJWLabs opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] 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 avatar Sep 04 '24 21:09 0xJWLabs

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,
        },
      },
    },
  }

sohanemon avatar Dec 17 '24 13:12 sohanemon