Skip to content

Commit

Permalink
fix: use Comment as fallback color for the Separator
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 3, 2022
1 parent 92916b6 commit 7ee35a7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lua/which-key/colors.lua
Expand Up @@ -2,23 +2,16 @@ local M = {}

local links = {
[""] = "Function",
Separator = "DiffAdd",
Separator = "Comment",
Group = "Keyword",
Desc = "Identifier",
Float = "NormalFloat",
Value = "Comment",
}

function M.setup()
for k, v in pairs({
[""] = "Function",
Separator = "DiffAdd",
Group = "Keyword",
Desc = "Identifier",
Float = "NormalFloat",
Value = "Comment",
}) do
vim.api.nvim_set_hl(0, 'WhichKey'..k, {link = v, default = true})
for k, v in pairs(links) do
vim.api.nvim_set_hl(0, "WhichKey" .. k, { link = v, default = true })
end
end

Expand Down

0 comments on commit 7ee35a7

Please sign in to comment.