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.
This commit is contained in:
Shaun Clayton 2024-07-21 17:12:11 -04:00 committed by GitHub
commit d04e235947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),