Skip to content

Commit

Permalink
fix(highlights): current context & hovering highlight priorities in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Aug 6, 2023
1 parent 71e1798 commit 88d71c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/dropbar/bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,12 @@ function dropbar_t:update_current_context_hl(bar_idx)
vim.api.nvim_set_hl(
0,
hl_currentcontext_icon,
utils.hl.merge('DropBarCurrentContext', symbol.icon_hl or 'WinBar')
utils.hl.merge(symbol.icon_hl or 'WinBar', 'DropBarCurrentContext')
)
vim.api.nvim_set_hl(
0,
hl_currentcontext_name,
utils.hl.merge('DropBarCurrentContext', symbol.name_hl or 'WinBar')
utils.hl.merge(symbol.name_hl or 'WinBar', 'DropBarCurrentContext')
)
symbol:swap_field('icon_hl', hl_currentcontext_icon)
symbol:swap_field('name_hl', hl_currentcontext_name)
Expand Down Expand Up @@ -698,12 +698,12 @@ function dropbar_t:update_hover_hl(col)
vim.api.nvim_set_hl(
0,
hl_hover_icon,
utils.hl.merge('DropBarHover', symbol.icon_hl or 'WinBar')
utils.hl.merge(symbol.icon_hl or 'WinBar', 'DropBarHover')
)
vim.api.nvim_set_hl(
0,
hl_hover_name,
utils.hl.merge('DropBarHover', symbol.name_hl or 'WinBar')
utils.hl.merge(symbol.name_hl or 'WinBar', 'DropBarHover')
)
symbol:swap_field('icon_hl', hl_hover_icon)
symbol:swap_field('name_hl', hl_hover_name)
Expand Down

0 comments on commit 88d71c6

Please sign in to comment.