Skip to content

Commit

Permalink
docs: change the api format
Browse files Browse the repository at this point in the history
  • Loading branch information
declancm committed Jun 28, 2024
1 parent 182ec91 commit e77666a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ require("cinnamon").setup {

### Description

`require("cinnamon").scroll(command, options?)`
`require("cinnamon").scroll({command}, {options})`

* `command` - Can be any of the following:
* `{command}` __(string|function)__ Can be any of the following:
* Normal mode movement command

```lua
Expand All @@ -157,7 +157,7 @@ require("cinnamon").setup {
end)
```

* `options` - An optional table to overwrite options from the configuration table.
* `{options}` __(table?)__ An optional table to overwrite options from the configuration table.

```lua
require("cinnamon").scroll("<C-]>", { delay = 3 })
Expand Down

0 comments on commit e77666a

Please sign in to comment.