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

can I make winbar transparent?

Open takei0107 opened this issue 2 years ago • 4 comments

I use lualine and nvim-navic to display winbar. I also set options.transparent in nightfox to make it transparent.

My question is, is it possible to make the winbar transparent. I have set only lualine_a, but I want the rest to be transparent.

My current setup seems to have highlites set up in areas other than lualine_a, but I am unable to figure out which highlite group it is.

-- winbar setting
local winbar = {
	lualine_a = {
		{ navic_location } -- call function
	},
}

Screenshot from 2022-08-27 19-39-39

I want to make the black part of winbar transparent.

takei0107 avatar Aug 27 '22 10:08 takei0107

You basically need lualine_c_normal , lualine_c_insert ..... highlight groups to have same background as Normal highlight group . Not sure if it's possible to do just for winbar. There might be ways to do this already I'll let you know if I remember any . It'd easy to do from themes once https://github.com/nvim-lualine/lualine.nvim/issues/577 gets implemented.

shadmansaleh avatar Aug 30 '22 00:08 shadmansaleh

I'm very interested in using winbar. But a solid background color bothers me. It'd be great if we could set it transparent (Normal highlight).

Danielwsx64 avatar Sep 22 '22 04:09 Danielwsx64

Would also like to see the transparency implemented. I have dark bar just like in the screenshot and I don't know how to make it transparent. I love the lualine implementation, just that dark bar is the only downside.

chris-av avatar Oct 06 '22 02:10 chris-av

Would also like to see the transparency implemented. I have dark bar just like in the screenshot and I don't know how to make it transparent. I love the lualine implementation, just that dark bar is the only downside.

vim.cmd("highlight lualine_c_inactive guibg=NONE")
vim.cmd("highlight lualine_c_normal guibg=NONE")

This works, but also disables the background for all c sections.

MaximilianLloyd avatar Dec 19 '23 18:12 MaximilianLloyd