Skip to content
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

How to use :pre-hook correctly? #75

Open
JordanAnthonyKing opened this issue Jan 17, 2025 · 0 comments
Open

How to use :pre-hook correctly? #75

JordanAnthonyKing opened this issue Jan 17, 2025 · 0 comments

Comments

@JordanAnthonyKing
Copy link

I'd like to use this package in a sorta similar way to kakoune. i.e. I'd like to be able to press w, move forward one word, and then be presented with a prompt for the 2nd, 3rd ... nth word to select, or alternatively I can just keep mashing w as I normally would.

I thought simply using :pre-hook with the same command would work but I'm not having any luck.

  (evilem-make-motion my-forward-word #'evil-forward-word-begin :pre-hook #'evil-forward-word-begin)

What am I doing wrong?

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

No branches or pull requests

1 participant