Conversation
WalkthroughIcon-specific highlight variants added to the Gruvbox Neovim plugin's completion item kind definitions. Approximately 25 new CmpItemKind*Icon entries are introduced, each linked to their respective base highlight group counterparts, expanding UI icon highlighting support without removing existing definitions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@ellisonleao is there any problems with this PR, can we merge this? |
|
Here's the snippet as a temporary solution: for name in pairs(require('cmp.types').lsp.CompletionItemKind) do
if type(name) == 'string' then
local hl_group = ('CmpItemKind%s'):format(name)
vim.api.nvim_set_hl(0, hl_group .. 'Icon', {
link = hl_group,
})
end
end |
|
thanks @eeeXun ! |
nvim-cmp separates icon highight in hrsh7th/nvim-cmp#2190
Summary by CodeRabbit