Skip to content

fix(main):modify which-key usage API , compatible with different whic… #61

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

Closed
wants to merge 1 commit into from

Conversation

zxhTom
Copy link

@zxhTom zxhTom commented Jun 25, 2025

…h-key versions

📑 Description

Problem:

After integrating the astrocore plugin into LunarVim and completing all configurations, I encountered the following error on every startup:

  Error executing lua callback: ...rvim/site/pack/lazy/opt/astrocore/lua/astrocore/init.lua:235: attempt to call field 'add' (a nil value)

Solution:

Through code analysis, I've made minor functional modifications to ensure compatibility between different API versions.

Request:

I would like to contribute these compatibility improvements through a pull request.

ℹ Additional Information

@zxhTom zxhTom force-pushed the feat/which-key-compatibility branch from 82f8981 to c4f1606 Compare June 25, 2025 08:19
@mehalter
Copy link
Member

Thanks for the recommendation! It appears you probably have a very old version of which-key. AstroNvim specifically doesn't support v2 of which-key and you should update to v3. I think we want to leave the code as is for now

@mehalter mehalter closed this Jun 25, 2025
@zxhTom
Copy link
Author

zxhTom commented Jun 25, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants