Skip to content

Commit 69a987b

Browse files
authored
fix: default highlight groups (#317)
1 parent 0f9807b commit 69a987b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/blink/cmp/init.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ cmp.add_default_highlights = function()
9393
end
9494

9595
set_hl('BlinkCmpLabel', { link = use_nvim_cmp and 'CmpItemAbbr' or 'Pmenu' })
96-
set_hl('BlinkCmpLabelDeprecated', { link = use_nvim_cmp and 'CmpItemAbbrDeprecated' or 'Comment' })
96+
set_hl('BlinkCmpLabelDeprecated', { link = use_nvim_cmp and 'CmpItemAbbrDeprecated' or 'NonText' })
9797
set_hl('BlinkCmpLabelMatch', { link = use_nvim_cmp and 'CmpItemAbbrMatch' or 'Pmenu' })
98+
set_hl('BlinkCmpLabelDetail', { link = use_nvim_cmp and 'CmpItemMenu' or 'NonText' })
99+
set_hl('BlinkCmpLabelDescription', { link = use_nvim_cmp and 'CmpItemMenu' or 'NonText' })
98100
set_hl('BlinkCmpKind', { link = use_nvim_cmp and 'CmpItemKind' or 'Special' })
99101
for _, kind in ipairs(require('blink.cmp.types').CompletionItemKind) do
100102
set_hl('BlinkCmpKind' .. kind, { link = use_nvim_cmp and 'CmpItemKind' .. kind or 'BlinkCmpKind' })
@@ -103,7 +105,7 @@ cmp.add_default_highlights = function()
103105
set_hl('BlinkCmpScrollBarThumb', { link = 'PmenuThumb' })
104106
set_hl('BlinkCmpScrollBarGutter', { link = 'PmenuSbar' })
105107

106-
set_hl('BlinkCmpGhostText', { link = use_nvim_cmp and 'CmpGhostText' or 'Comment' })
108+
set_hl('BlinkCmpGhostText', { link = use_nvim_cmp and 'CmpGhostText' or 'NonText' })
107109

108110
set_hl('BlinkCmpMenu', { link = 'Pmenu' })
109111
set_hl('BlinkCmpMenuBorder', { link = 'Pmenu' })

0 commit comments

Comments
 (0)