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] "SPC + SPC" binding for +evil/easymotion gives prefix error #1672
Comments
You cannot bind +evil/easymotion anywhere else but on (map! :leader :m "gs" #'evil/easymotion) ; note the :m It was not designed to be bound anywhere else (and cannot be -- not reliably). It's a trick to lazy load evil-easymotion and then bind evilem-map to the key sequence that triggered it, without compromising which-key integration and without having to duplicate the built-in keybinds on evilem-map. There is no reliable mechanism for determining through what keymap a command was invoked, so there is no simple solution to this problem. Since these are meant to be "augmented" motion keys to begin with, this seemed like an acceptable compromise. On an unrelated note, you should use |
I'll assume the issue was sufficiently resolved, but mark it as |
Also makes +evil/easymotion generic; it can now be moved to any key, and new keys can be added to the <easymotion> event, rather than having to wait for evilem-map to become available. Also fixes +org/goto-visible if used before avy is loaded. Relevant to #1672
As of 27cabea, you can bind |
Reverts fix for #1672, but provides a workaround: (map! :n "gl" (λ! (+evil/easymotion 'normal 'global)))
Reverts fix for doomemacs#1672, but provides a workaround: (map! :n "gl" (λ! (+evil/easymotion 'normal 'global)))
Describe the issue
Trying to map
SPC SPC
to+evil/easymotion
fails with "non-prefix key SPC" error. Other functions map just fine.The failing code looks like this:
However, both of these work just fine:
This suggests that there's something about the internals of
+evil/easymotion
that doesn't like being mapped to a prefix key...which is weird because the defaultg s
mapping usesg
as a prefix, which has other keys as well.System information
The text was updated successfully, but these errors were encountered: