folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.12k stars 163 forks source link

bug: highlight not getting set properly for padding in which-key title #683

Closed sjclayton closed 1 month ago

sjclayton commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.0

Operating system/version

Arch Linux

Describe the bug

which-key title when enabled shows gaps in padding with no background color when a color scheme links WhichKeyTitle to a hl group that does have a background set. This appears to only affect nvim v0.10.0, nightly appears to be fine.

Like this:

2024-07-14_09-54

Example is rose-pine-moon with WhichKeyTitle set to WhichKeyTitle guifg=#9ccfd8 guibg=#2a273f

Steps To Reproduce

  1. Have opts.win.title = true and opts.win.title_pos = "center" or opts.preset = "modern" or "helix" set.
  2. Use a color scheme that defines WhichKeyTitle with a bg color.
  3. Open nvim v0.10.0
  4. Observe.

Expected Behavior

Highlight of title padding has the same background as the title itself.

Health

No response

Log

No response

Repro

No response