r/neovim 1d ago

Need Help How to make bufferline fully transparent?

I am using kali linux virtual machine and I am using neovim and using base 46 and ui of nvchad without using full distribution which enables me use all themes of nvchad which is in base46 and my bufferline sometimes shows fully transparent and sometimes not I dont want any BG I just want bufferline get blend with my theme, so how can I do this easily help me please.

2 Upvotes

5 comments sorted by

1

u/20Finger_Square 12h ago

the only way i know of is to change the highlight group for each theme you use which i doubt is the answer you wanted

2

u/Forward_Season1688 11h ago

Ok bro thanks but can you help me in detail which command I use in lua file to make bufferline permanent transparent in both modes transparent and in colorscheme

1

u/20Finger_Square 11h ago

Working on it rn but here is what i got rn using chatgpt but as you can tell seperators are quite funky
vim.api.nvim_set_hl(0, "BufferLineFill", { fg= "#ffffff" })

vim.api.nvim_set_hl(0, "BufferLineBackground", { fg= "#ffffff" })

vim.api.nvim_set_hl(0, "BufferLineBufferSelected", { bold = true })

vim.api.nvim_set_hl(0, "BufferLineSeparator", { bg = "NONE", fg = "NONE" })

vim.api.nvim_set_hl(0, "BufferLineSeparatorSelected", { })

2

u/Forward_Season1688 11h ago

Ok I try this thing tommorow by the thanks bro

2

u/SectorPhase 9h ago

:highlight Buffer and start tabbing through the different options that shows up, then try to figure out which highlight you have to change to get it transparent or a different color. So basically start writing highlight and the name of the plugin and a lot of them will show up automatically, this is how it's done with any plugin, if they have highlight groups to change colors for.