Skip to content

Commit 1e2c61d

Browse files
committed
feat: added example that matches beginning of words only
1 parent 6d4c770 commit 1e2c61d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,20 @@ require("flash").jump({
250250

251251
</details>
252252

253+
<details><summary>Match beginning of words only</summary>
254+
255+
```lua
256+
require("flash").jump({
257+
search = {
258+
mode = function(str)
259+
return "\\<" .. str
260+
end,
261+
},
262+
})
263+
```
264+
265+
</details>
266+
253267
## 📦 Alternatives
254268

255269
- [leap.nvim](https://github.com/ggandor/leap.nvim)

0 commit comments

Comments
 (0)