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: Title requires border to be set #764

Closed etyloppihacilem closed 1 month ago

etyloppihacilem commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10.0 commit 27fb629

Operating system/version

Ubuntu jammy 22.04 x86_64

Describe the bug

Anytime a key is pressed in normal mode, this error message appears :

Something went wrong:
...cal/share/nvim/lazy/which-key.nvim/lua/which-key/win.lua:97: title requires border to be set

I have a fix consisting of adding border = "none" to defaults at line 32 in lua/which-key/win.lua, but I don't know if the problem is on my side or if I should open a pull request.

Steps To Reproduce

Press a key that should display which-key window.

Expected Behavior

The which-key window is supposed to open normally.

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
- OK |nvim-web-devicons| is installed

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

checking for overlapping keymaps ~
   [...]
- 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

State(start): Mode(n:0) Node(,) { keys = "," }
  update Mode(n:1)
  continue: , Mode(n:1)
  getchar
  got: :
  suspend: Mode(n:1)
  Trigger(del) Mode(n:1) g \ z , ' <Plug> ] " <C-W> [ ` g' g` z= <Space>
  feedkeys: Mode(n:1) ,:
Trigger(add) Mode(n:1) ' " ` g' g` z= g \ z , <Space> <Plug> ] [ <C-W>

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
  },
})