Closed etrobert closed 1 month ago
0.9.5
MacOS 14.5
After updating to which-key 3.0, the plugin crashes when NeoVim is opened with the following error.
Checkhealth does not report anything worrisome.
The which-key UI does not appear.
nvim -u repro.lua
The plugin does not crash.
The which-key UI appears
-- Bootstrap lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath, }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { out, "WarningMsg" }, { "\nPress any key to exit..." }, }, true, {}) vim.fn.getchar() os.exit(1) end end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ spec = { { "folke/which-key.nvim", event = "VeryLazy", init = function() vim.o.timeout = true vim.o.timeoutlen = 300 end, opts = function() local wk = require("which-key") wk.register({ pv = { vim.cmd.Ex, "File Explorer" }, }) return {} end, }, }, })
Fixed in version 3.10, currently waiting on this PR to be approved
Thank you! 💃
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
MacOS 14.5
Describe the bug
After updating to which-key 3.0, the plugin crashes when NeoVim is opened with the following error.
Checkhealth does not report anything worrisome.
The which-key UI does not appear.
Steps To Reproduce
Expected Behavior
The plugin does not crash.
The which-key UI appears
Repro