Skip to content

Use vim.on_key for keymap #487

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Use vim.on_key for keymap #487

wants to merge 1 commit into from

Conversation

Saghen
Copy link
Owner

@Saghen Saghen commented Dec 10, 2024

Uses vim.on_key for the keymap instead of defining keymaps with complicated fallback logic. Requires neovim 0.11 and currently doesn't have support for multiple keys (i.e. <C-g><C-o>) yet. Thanks @hrsh7th for recommending this! Related #482

I'll wait for 0.11 to release before merging, since I'd rather not maintain two different code paths for keymaps

Closes #406
Closes #453
Closes #289
Closes #714

@tvercruyssen
Copy link

I'll wait for 0.11 to release before merging

https://github.com/neovim/neovim/releases/tag/v0.11.0 🎉

@Saghen
Copy link
Owner Author

Saghen commented Mar 30, 2025

Originally I had planned to up the minimum version to 0.11 before marking as stable, but I realized that would leave a lot of people on stable distros without support. So I'm planning to use this for v2 of the plugin instead!

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