folke / flash.nvim

Navigate your code with search labels, enhanced character motions and Treesitter integration
Apache License 2.0
2.48k stars 32 forks source link

Question about setting up 2-char jump #202

Closed neur1n closed 2 months ago

neur1n commented 1 year ago

I'm trying to set up 2-char jump, following the HopWord example in README.md, by replace patter = [[\<]] with pattern = State.get_char(State) where State is defined as local State = require("flash.state"), and I bind the function to key t. It somehow works, but when I press t, the texts are not gray out until I press the first char, and the 2-char label moves forward as I type in the label characters. Please check the attached GIF for a demonstration.

Animation

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.