-
-
Notifications
You must be signed in to change notification settings - Fork 241
feat: nvim-cmp icon #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: nvim-cmp icon #416
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 |
nvim-cmp separates icon highight in hrsh7th/nvim-cmp#2190
Summary by CodeRabbit