Skip to content

Commit

Permalink
feat: added WhichKeyBorder highlight group
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 5, 2022
1 parent 7d26062 commit 9c190ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ The table below shows all the highlight groups defined for **WhichKey** with the
| *WhichKeySeparator* | DiffAdd | the separator between the key and its label |
| *WhichKeyDesc* | Identifier | the label of the key |
| *WhichKeyFloat* | NormalFloat | Normal in the popup window |
| *WhichKeyBorder* | NormalBorder| Normal in the popup window |
| *WhichKeyValue* | Comment | used by plugins that provide values |

<!-- markdownlint-disable-file MD033 -->
Expand Down
1 change: 1 addition & 0 deletions lua/which-key/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local links = {
Group = "Keyword",
Desc = "Identifier",
Float = "NormalFloat",
Border = "NormalBorder",
Value = "Comment",
}

Expand Down
2 changes: 1 addition & 1 deletion lua/which-key/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function M.show()
vim.api.nvim_buf_set_option(M.buf, "filetype", "WhichKey")
vim.api.nvim_buf_set_option(M.buf, "buftype", "nofile")
-- vim.api.nvim_win_hide(M.win)
vim.api.nvim_win_set_option(M.win, "winhighlight", "NormalFloat:WhichKeyFloat")
vim.api.nvim_win_set_option(M.win, "winhighlight", "NormalFloat:WhichKeyFloat,NormalBorder:WhichKeyBorder")
vim.api.nvim_win_set_option(M.win, "foldmethod", "manual")
vim.api.nvim_win_set_option(M.win, "winblend", config.options.window.winblend)

Expand Down

0 comments on commit 9c190ea

Please sign in to comment.