Skip to content

Commit

Permalink
fix: default highlight groups (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py authored Nov 12, 2024
1 parent 0f9807b commit 69a987b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ cmp.add_default_highlights = function()
end

set_hl('BlinkCmpLabel', { link = use_nvim_cmp and 'CmpItemAbbr' or 'Pmenu' })
set_hl('BlinkCmpLabelDeprecated', { link = use_nvim_cmp and 'CmpItemAbbrDeprecated' or 'Comment' })
set_hl('BlinkCmpLabelDeprecated', { link = use_nvim_cmp and 'CmpItemAbbrDeprecated' or 'NonText' })
set_hl('BlinkCmpLabelMatch', { link = use_nvim_cmp and 'CmpItemAbbrMatch' or 'Pmenu' })
set_hl('BlinkCmpLabelDetail', { link = use_nvim_cmp and 'CmpItemMenu' or 'NonText' })
set_hl('BlinkCmpLabelDescription', { link = use_nvim_cmp and 'CmpItemMenu' or 'NonText' })
set_hl('BlinkCmpKind', { link = use_nvim_cmp and 'CmpItemKind' or 'Special' })
for _, kind in ipairs(require('blink.cmp.types').CompletionItemKind) do
set_hl('BlinkCmpKind' .. kind, { link = use_nvim_cmp and 'CmpItemKind' .. kind or 'BlinkCmpKind' })
Expand All @@ -103,7 +105,7 @@ cmp.add_default_highlights = function()
set_hl('BlinkCmpScrollBarThumb', { link = 'PmenuThumb' })
set_hl('BlinkCmpScrollBarGutter', { link = 'PmenuSbar' })

set_hl('BlinkCmpGhostText', { link = use_nvim_cmp and 'CmpGhostText' or 'Comment' })
set_hl('BlinkCmpGhostText', { link = use_nvim_cmp and 'CmpGhostText' or 'NonText' })

set_hl('BlinkCmpMenu', { link = 'Pmenu' })
set_hl('BlinkCmpMenuBorder', { link = 'Pmenu' })
Expand Down

0 comments on commit 69a987b

Please sign in to comment.