fix(nvim): use correct index for cmp color highlights

This commit is contained in:
Price Hiller 2023-08-22 02:21:44 -05:00
parent 66fd36bed9
commit 7a3a78c704
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -99,7 +99,7 @@ return {
})(entry, vim_item)
if string.match(kind.kind, ".* Color$") then
kind.kind_hl_group =
handle_color_hl(entry.cache.entries.get_completion_item.documentation)
handle_color_hl(entry.cache.entries.get_completion_item.label)
end
local strings = vim.split(kind.kind, "%s", { trimempty = true })