From 7a3a78c704c8c3b6ab1a44b25537bed732651d35 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 22 Aug 2023 02:21:44 -0500 Subject: [PATCH] fix(nvim): use correct index for cmp color highlights --- dots/.config/nvim/lua/plugins/configs/cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 927863db..19f88be4 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -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 })