-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Feature]: Load keymaps from Neovim API #258
Comments
If anyone wants to work on a PR here are some specific points I'd like to include in the implementation:
|
Heh, I was just coming to see if this had been filed before. I'm a little swamped right now, but might be able to look into in a few weeks. This won't work in The telescope implementation of this does it on the fly every time without any noticeable delay. |
The |
@ehaynes99 I'd love to see a PR for this if you're still interested 🙂 |
Just adding a note here that this seems to be the reason why It seems that neo-tree uses Not sure I have the skills or time to tackle this, but maybe I'll find the time if the pain gets high enough 😅 . |
Copying my comment from the linked issue here for documentation purposes: Just jumping in here from the linked issue:
You can define commands with legendary or load them into legendary, but it doesn't do it automatically for a few reasons. For commands coming from plugins, it should be pretty straightforward to write a legendary extension, there's a few bulit-in ones you can use as an example. They can be written in the upstream plugin repo, or as a PR to legendary itself. @lougreenwood for example, neo-tree seems like it could have a legendary extension written for it, by mapping the action names from the neo-tree config to a description like local descriptions = {
navigate_up = 'Navigate up',
order_by_git_status = 'Sort by git status',
-- ... the rest here
} And then converting the keymap definitions into the right format. Example: lazy.nvim legendary extension. |
Thanks @mrjones2014, however, it seems that if I were to try this, then effort spent creating a |
Yeah, at this point in time it should be possible to load keymaps from the Loading commands, however, remains roadblocked (see the conversation in #39) because weirdly the |
Similar Issues
Description
Automatically load existing keymaps via
vim.api.nvim_get_keymap(mode)
.For additional context see #39
The text was updated successfully, but these errors were encountered: