Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

ideavim-sneak doesn't use mappings from .ideavimrc #24

Open
AlexPl292 opened this issue Aug 25, 2022 · 0 comments
Open

ideavim-sneak doesn't use mappings from .ideavimrc #24

AlexPl292 opened this issue Aug 25, 2022 · 0 comments

Comments

@AlexPl292
Copy link
Contributor

It's not possible to define mapping to f for the ideavim-sneak inside of .ideavimrc.
This happens because the extension ideavim-sneak is always loaded after .ideavimrc execution and overrides my f mapping. Also, it sets mapping to s even I defined a different one.
The common vim approach to that is to set the mapping only in case there are no other mappings to the target combination, so instead of map a b they use if hasnomap('b') { map a b }. This approach is also possible with IdeaVim, but you need to bump IdeaVim version to be able to use com.maddyhome.idea.vim.extension.VimExtensionFacade#putKeyMappingIfMissing instead of VimExtensionFacade.putKeyMapping.
AlexPl292@7bc0cc9#diff-70f746b80ee793cd4c788716eb5f0e7435f1ac6e81e0f73af0ee9dbc641acbbeR39

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

No branches or pull requests

1 participant