Skip to content

Commit 2cce0f8

Browse files
committed
feat(editor): add highlights for PmenuKind and PmenuKindSel
The default links to Pmenu and PmenuSel, which makes the kind text or symbol difficult to distinguish from the actual item. Configured PmenuKind and PmenuKindSel to match Pmenu and PmenuSel in `bg` and `style`, but set `fg` to `blue` (same as for `blink.cmp` and `nvim-cmp`).
1 parent 0303a72 commit 2cce0f8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua/catppuccin/groups/editor.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ function M.get()
7070
PmenuMatchSel = { style = { "bold" } }, -- Popup menu: matching text in selected item; is combined with |hl-PmenuMatch| and |hl-PmenuSel|.
7171
PmenuSbar = { bg = C.surface0 }, -- Popup menu: scrollbar.
7272
PmenuThumb = { bg = C.overlay0 }, -- Popup menu: Thumb of the scrollbar.
73+
PmenuKind = {
74+
bg = (O.transparent_background and vim.o.pumblend == 0) and C.none or C.mantle,
75+
fg = C.blue,
76+
}, -- Popup menu: item kind. Background and style must match `Pmenu`.
77+
PmenuKindSel = { bg = C.surface0, fg = C.blue, style = { "bold" } }, -- Popup menu: selected item kind. Background and style must match `PmenuSel`.
7378
PmenuExtra = { fg = C.overlay0 }, -- Popup menu: normal item extra text.
7479
PmenuExtraSel = {
7580
bg = C.surface0,

0 commit comments

Comments
 (0)