hadronized / hop.nvim

Neovim motions on speed!
Other
2.47k stars 137 forks source link

How can I setup this plugin for matching both the beginning and end of a word #346

Closed JuanZoran closed 1 year ago

JuanZoran commented 1 year ago

As the title said, I want set the HopWord that can match the beginning of words and end of words

What should I do for that...

hadronized commented 1 year ago

You probably want to use hop.jump_target.jump_targets_by_scanning_line to create a new Hop mode that uses a regexes matching both the beginning and end of a word. :h hop-jump-target-api for more.

JuanZoran commented 1 year ago

alright, Thank you for your reply