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: weird appearance when window is narrow #652

Closed haoming-li-ling closed 1 month ago

haoming-li-ling commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.11.0-dev-398+g45b7a2c50

Operating system/version

MacOS 14.2

Describe the bug

On a tiled window, which-key in its classic preset shows up like this.

image

I didn't change any options related to the appearance of which-key.

Steps To Reproduce

Just press <leader>.

Expected Behavior

Should not have these line breaks for the description. The window is not that narrow.

Health

No response

Log

No response

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/which-key.nvim", opts = {} },
    -- add any other plugins here
  },
})
folke commented 1 month ago

I can't reproduce this. I've also made a bunch of changes that may have fixed this. If the issue persists, please provide a repro