akinsho / bufferline.nvim

A snazzy bufferline for Neovim
GNU General Public License v3.0
3.53k stars 199 forks source link

[Bug]: Highlight "buffer" doesn't work #872

Open Jaehaks opened 8 months ago

Jaehaks commented 8 months ago

Is there an existing issue for this?

What happened?

"buffer" field color cannot change even though I set the hightlight color. "buffer_selected" and "numbers" field work, but name of buffer which are opened and not selected doesn't change color

I cannot attach the image, I don't know what is the reason

What did you expect to happen?

Change color of buffer which are opened and not selected.

Config

return {
    'akinsho/bufferline.nvim',
    dependencies = {
        'nvim-tree/nvim-web-devicons', opt = true
    },
    config = function()
        require('bufferline').setup({
            options = {
                show_buffer_icons = false,              -- disable file icons
                show_buffer_close_icons = false,        -- disable close icons
                show_close_icon = false,
                numbers = function(opts)
                    return string.format('%s)',opts.id) -- but it works
                end,
            },
            highlights = {
                buffer = {
                    fg = '#FFFFFF',
                    bg = '#011627'
                },
                buffer_selected = {
                    fg = '#FF00FF',
                    bf = '#011627'
                },
                numbers_selected = {
                    fg = '#FF00FF',
                    bf = '#011627'
                },
                numbers = {
                    fg = '#FF00FF',
                    bf = '#011627'
                },
            }
        })
    end
}

Additional Information

nvim-qt v0.2.18 Windows 10

commit

No response

xizonghu commented 3 months ago

I have this problem too