Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Keymaps from expanded groups only show one key #795

Closed
4 tasks done
sid-6581 opened this issue Jul 24, 2024 · 0 comments · Fixed by #796
Closed
4 tasks done

bug: Keymaps from expanded groups only show one key #795

sid-6581 opened this issue Jul 24, 2024 · 0 comments · Fixed by #796
Labels
bug Something isn't working

Comments

@sid-6581
Copy link

Did you check docs and existing issues?

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

Neovim version (nvim -v)

latest nightly

Operating system/version

Windows 11

Describe the bug

With the repro below, I get the following:

image

There are multiple keymaps with the same key that are from expanded groups. Instead of showing the entire key combo, it's only showing the last one.

Steps To Reproduce

Use the repro below and do :WhichKey

Expected Behavior

The entire key combo for items from expanded groups.

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 = {
        expand = function(_node)
          return true
        end,
    } },
  },
})
@sid-6581 sid-6581 added the bug Something isn't working label Jul 24, 2024
@folke folke closed this as completed in f5e0cd5 Jul 24, 2024
folke pushed a commit that referenced this issue Jul 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.13.2](v3.13.1...v3.13.2)
(2024-07-24)


### Bug Fixes

* **view:** fix epanded keys. Fixes
[#795](#795)
([f5e0cd5](f5e0cd5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant