Skip to content

Commit

Permalink
feat: added example that matches beginning of words only
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 21, 2023
1 parent 6d4c770 commit 1e2c61d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,20 @@ require("flash").jump({

</details>

<details><summary>Match beginning of words only</summary>

```lua
require("flash").jump({
search = {
mode = function(str)
return "\\<" .. str
end,
},
})
```

</details>

## 📦 Alternatives

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

0 comments on commit 1e2c61d

Please sign in to comment.