[nvim] fix winbar on transparent bg
This commit is contained in:
parent
e2613dd01a
commit
6febba69a8
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function M.render()
|
|||
local normal_fg_color = vim.api.nvim_get_hl_by_name('Normal', true).foreground
|
||||
|
||||
-- Convert the RGB color to a hex string
|
||||
local bg_hex_color = string.format('#%06x', normal_bg_color)
|
||||
local bg_hex_color = normal_bg_color and string.format('#%06x', normal_bg_color) or 'transparent'
|
||||
-- Convert the RGB color to a hex string
|
||||
local fg_hex_color = string.format('#%06x', normal_fg_color)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue