Skip to content

Commit

Permalink
docs: split code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Feb 29, 2024
1 parent 507649a commit 8b6ba54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/plugins/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ require("bar"):setup {
key2 = "value2",
-- ...
}
```

```lua
-- ~/.config/yazi/plugins/bar.yazi/init.lua
return {
setup(state, opts)
-- Save the user configuration to the plugin state
-- Save the user configuration to the plugin's state
state.key1 = opts.key1
state.key2 = opts.key2
end,
Expand Down

0 comments on commit 8b6ba54

Please sign in to comment.