From 7b505086298561c7012fe64a19223434f6138a21 Mon Sep 17 00:00:00 2001 From: danymat Date: Wed, 1 Dec 2021 00:06:09 +0100 Subject: [PATCH] feat: Add more highlights to nvim-cmp This should close #36. For information sake, the colors and the arrangement is very personal, and can be subject to changes. Feel free to complete the list of supported CmpItemKind from there: https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/types/lsp.lua#L108 --- lua/rose-pine/theme.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index f688027..07ab72a 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -414,6 +414,14 @@ theme.plugins = { CmpItemAbbrMatch = { fg = p.text, style = 'bold' }, CmpItemAbbrMatchFuzzy = { fg = p.text, style = 'bold' }, CmpItemAbbrDeprecated = { fg = p.subtle, style = 'strikethrough' }, + CmpItemKindVariable = { fg = p.foam }, + CmpItemKindClass = { fg = p.gold }, + CmpItemKindInterface = { fg = p.gold }, + CmpItemKindFunction = { fg = p.iris }, + CmpItemKindMethod = { fg = p.iris }, + CmpItemKindSnippet = { fg = p.iris }, + CmpItemKindKeyword = { fg = p.subtle }, + CmpItemKindText = { fg = p.subtle }, -- neogit -- https://github.com/TimUntersberger/neogit