which-key.nvim icon indicating copy to clipboard operation
which-key.nvim copied to clipboard

bug: opts.icons.mappings = false -- "󱊷 close"

Open Dmole opened this issue 1 month ago • 0 comments

Did you check docs and existing issues?

  • [x] I have read all the which-key.nvim docs
  • [x] I have updated the plugin to the latest version before submitting this issue
  • [x] I have searched the existing issues of which-key.nvim
  • [x] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.11.1

Operating system/version

Alpine v3.22

Describe the bug

"󱊷 close" is shown when opts.icons.mappings = false

Steps To Reproduce

  1. fresh OS and neovim install
  2. mkdir -p ~/.config/nvim/pack/plugins/start
  3. cd ~/.config/nvim/pack/plugins/start
  4. git clone --depth 1 https://github.com/folke/which-key.nvim
  5. set mappings = false, in ~/.config/nvim/pack/plugins/start/which-key.nvim/lua/which-key/config.lua
  6. nvim
  7. d
  8. 󱊷 close is shown

Expected Behavior

"[esc] close" should be shown

also icon WARNINGs in checkhealth should not show

Health

which-key:                                 require("which-key.health").check()

- ✅ OK Most of these checks are for informational purposes only.
  WARNINGS should be treated as a warning, and don't necessarily indicate a problem with your config.
  Please DON'T report these warnings as an issue.

Checking your config
- ⚠️  WARNING mini.icons is not installed
- ⚠️  WARNING nvim-web-devicons is not installed
- ⚠️  WARNING Keymap icon support will be limited.

Checking for issues with your mappings
- ✅ OK No issues reported

checking for overlapping keymaps
- ⚠️  WARNING In mode n, <gc> overlaps with <gcc>:
  - <gc>: Toggle comment
  - <gcc>: Toggle comment line
- ✅ OK Overlapping keymaps are only reported for informational purposes.
  This doesn't necessarily mean there is a problem with your config.

Checking for duplicate mappings
- ✅ OK No duplicate mappings found

Log

Debug Started for v3.17.0
on_key: d
ModeChanged(n:no)
  new Mode(o:1)
  Safe(true)
  State(start): Mode(o:0) Node() { defer = false }
    update Mode(o:1)
    continue:  Mode(o:1)
    getchar
    Trigger(add) Mode(o:1) [ g ]
    new Mode(n:1)
    Trigger(add) Mode(n:1) ' ` " z= g` g' ] [ z <C-W> g
    on_key: q
    got: q
    suspend: Mode(o:1)
    Trigger(del) Mode(o:1) g ] [
    feedkeys: Mode(o:1) q
on_key: q
ModeChanged(no:n)
  Safe(true)
Trigger(add) Mode(o:1) [ g ]
on_key: <Esc>
on_key: :
ModeChanged(n:c)
  new Mode(c:1)
  Safe(true)
Trigger(add) Mode(c:1) <C-R>
on_key: q
on_key: <CR>
ModeChanged(c:n)
  Unsafe(command-mode)
  suspend: Mode(n:1)
  Trigger(del) Mode(n:1) ` " z= g ' g` g' ] [ z <C-W>
Trigger(add) Mode(n:1) ' ` " z= g` g' ] [ z <C-W> g

Repro

--empty

Dmole avatar Nov 18 '25 19:11 Dmole