fix: x, y, z hl group not setting correctly (#484)
Highlight groups for x, y, z would only set correctly if theme had normal mode explicitly set
This commit is contained in:
parent
3a17e2dbca
commit
5596c2a25a
|
@ -249,11 +249,11 @@ end
|
||||||
---@param is_focused boolean
|
---@param is_focused boolean
|
||||||
---@return string formatted highlight group name
|
---@return string formatted highlight group name
|
||||||
function M.format_highlight(highlight_group, is_focused)
|
function M.format_highlight(highlight_group, is_focused)
|
||||||
if highlight_group > 'lualine_c' and not M.highlight_exists(highlight_group .. '_normal') then
|
local highlight_name = M.append_mode(highlight_group, is_focused)
|
||||||
|
if highlight_group > 'lualine_c' and not M.highlight_exists(highlight_name) then
|
||||||
highlight_group = 'lualine_' .. section_highlight_map[highlight_group:match 'lualine_(.)']
|
highlight_group = 'lualine_' .. section_highlight_map[highlight_group:match 'lualine_(.)']
|
||||||
|
highlight_name = M.append_mode(highlight_group, is_focused)
|
||||||
end
|
end
|
||||||
local highlight_name
|
|
||||||
highlight_name = M.append_mode(highlight_group, is_focused)
|
|
||||||
if M.highlight_exists(highlight_name) then
|
if M.highlight_exists(highlight_name) then
|
||||||
return '%#' .. highlight_name .. '#'
|
return '%#' .. highlight_name .. '#'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue