Default CmpItemKind%name% to CmpItemKind (#712)

Reading the doc it seemed I could set `CmpItemKind` to override all item kind. Am I missing something?
This commit is contained in:
Israël Hallé
2022-01-08 00:34:07 -05:00
committed by GitHub
parent 3f7b7b258a
commit 9f6d2b4225

View File

@@ -82,7 +82,7 @@ misc.set(_G, { 'cmp', 'plugin', 'colorscheme' }, function()
}) })
for name in pairs(types.lsp.CompletionItemKind) do for name in pairs(types.lsp.CompletionItemKind) do
if type(name) == 'string' then if type(name) == 'string' then
vim.cmd(([[highlight default link CmpItemKind%sDefault CmpItemKindDefault]]):format(name)) vim.cmd(([[highlight default link CmpItemKind%sDefault CmpItemKind]]):format(name))
end end
end end
highlight.inherit('CmpItemMenuDefault', 'Pmenu', { highlight.inherit('CmpItemMenuDefault', 'Pmenu', {