Skip to content

Commit a49dbd4

Browse files
committed
fix(lualine): resolve background color defaulting issue
1 parent 9a5d51b commit a49dbd4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/modules/utils/init.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@ function M.hl_to_rgb(hl_group, use_bg, fallback_hl)
161161
local hlexists = pcall(vim.api.nvim_get_hl, 0, { name = hl_group, link = false })
162162

163163
if hlexists then
164-
-- FIXME: Investigate why hl-StatusLine is undefined in toggleterm and remove this workaround
165-
-- (@Jint-lzxy)
166-
local link = vim.bo.filetype == "toggleterm"
167-
local result = vim.api.nvim_get_hl(0, { name = hl_group, link = link })
164+
local result = vim.api.nvim_get_hl(0, { name = hl_group, link = false })
168165
if use_bg then
169166
hex = result.bg and string.format("#%06x", result.bg) or "NONE"
170167
else

0 commit comments

Comments
 (0)