From 674b1539ed09001a8514e2fcb64c38374ce6dc70 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 1 Dec 2021 14:35:15 +0530 Subject: [PATCH] nvim: colors/yolokai: Update highlight for nvim-cmp This adds support for using different highlights for each of the LSP kind items like variable, functions, methods etc. --- nvim/.config/nvim/colors/yolokai.vim | 37 +++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/nvim/.config/nvim/colors/yolokai.vim b/nvim/.config/nvim/colors/yolokai.vim index ec31b1d..4fb69a0 100644 --- a/nvim/.config/nvim/colors/yolokai.vim +++ b/nvim/.config/nvim/colors/yolokai.vim @@ -718,12 +718,37 @@ local highlight_groups = { pandocEmphasisInStrong = 'pandocStrongEmphasis', --[[ 4.4.15 nvim-cmp ]] - CmpItemKind = {bg=black, fg=orange, style=NONE }, - CmpItemMenu = {bg=black, fg=NONE, style=NONE }, - CmpItemAbbr = {bg=black, fg=aqua, style=NONE }, - CmpItemAbbrMatch = {bg=black, fg=red, style='bold' }, - CmpItemAbbrMatchFuzzy = {bg=black, fg=aqua, style='bold' }, - CmpItemAbbrDeprecated = {bg=black, fg=purple, style=NONE }, + CmpItemMenu = {bg=black, fg=NONE, style=NONE }, + CmpItemAbbr = {bg=black, fg=aqua, style=NONE }, + CmpItemAbbrMatch = {bg=black, fg=red, style='underline' }, + CmpItemAbbrMatchFuzzy = {bg=black, fg=aqua, style='bold' }, + CmpItemAbbrDeprecated = {bg=black, fg=purple, style=NONE }, + CmpItemKind = {bg=black, fg=orange, style=NONE }, + CmpItemKindText = 'String', + CmpItemKindMethod = 'CmpItemKindFunction', + CmpItemKindFunction = 'Function', + CmpItemKindConstructor = 'CmpItemKindMethod', + CmpItemKindField = 'Identifier', + CmpItemKindVariable = 'Identifier', + CmpItemKindClass = 'CmpItemKindStruct', + CmpItemKindInterface = 'Type', + CmpItemKindModule = 'Include', + CmpItemKindProperty = 'CmpItemKindField', + CmpItemKindUnit = 'CmpItemKindStruct', + CmpItemKindValue = 'CmpItemKindConstant', + CmpItemKindEnum = 'CmpItemKindStruct', + CmpItemKindKeyword = 'Keyword', + CmpItemKindSnippet = 'Special', + CmpItemKindColor = 'Label', + CmpItemKindFile = 'Directory', + CmpItemKindReference = 'StorageClass', + CmpItemKindFolder = 'CmpItemKindFile', + CmpItemKindEnumMember = 'CmpItemKindConstant', + CmpItemKindConstant = 'Constant', + CmpItemKindStruct = 'Structure', + CmpItemKindEvent = 'Repeat', + CmpItemKindOperator = 'Operator', + CmpItemKindTypeParameter = 'Typedef', --[[ 4.4.16 Hop ]] HopNextKey = {bg=red , fg=black , style='bold'},