Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Aug 21, 2023
1 parent 43651ac commit fc8b700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ You can easily add more patterns to open url under cursor by adding more pattern
```lua
-- default values
require("url_open").setup({
-- if true, only open url when cursor in the middle of url
-- if false, open next url found from cursor position it means you can open
-- url even when the cursor is in front of url or in the middle of url
open_only_when_cursor_on_url = false,
deep_pattern = false,
extra_patterns = {
-- [pattern] = prefix: string only or nil
Expand Down

0 comments on commit fc8b700

Please sign in to comment.