nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.16k stars 465 forks source link

can I make winbar transparent? #813

Open takei0107 opened 2 years ago

takei0107 commented 2 years ago

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.

shadmansaleh commented 2 years ago

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.

Danielwsx64 commented 2 years ago

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).

chris-av commented 2 years ago

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.

MaximilianLloyd commented 10 months ago

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.