From 2f1733d36f7765d3f0bd99a9c4af482b8a9260eb Mon Sep 17 00:00:00 2001 From: Shaun Clayton Date: Sun, 21 Jul 2024 17:12:11 -0400 Subject: [PATCH] feat: add support for icons in which-key.nvim (#291) * feat: add icon support for which-key.nvim * fix: incorrect color reference * feat: set WhichKeyIcon hl group to 'pine' by default Used when the colors option is set to false. --- lua/rose-pine.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 73712cd..afea3ea 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -529,6 +529,16 @@ local function set_highlights() WhichKeyDesc = { fg = palette.gold }, WhichKeyFloat = { bg = groups.panel }, WhichKeyGroup = { fg = palette.foam }, + WhichKeyIcon = { fg = palette.pine }, + WhichKeyIconAzure = { fg = palette.pine }, + WhichKeyIconBlue = { fg = palette.pine }, + WhichKeyIconCyan = { fg = palette.foam }, + WhichKeyIconGreen = { fg = palette.leaf }, + WhichKeyIconGrey = { fg = palette.subtle }, + WhichKeyIconOrange = { fg = palette.rose }, + WhichKeyIconPurple = { fg = palette.iris }, + WhichKeyIconRed = { fg = palette.love }, + WhichKeyIconYellow = { fg = palette.gold }, WhichKeyNormal = { link = "NormalFloat" }, WhichKeySeparator = { fg = palette.subtle }, WhichKeyTitle = make_border(palette.foam),