Skip to content

Commit

Permalink
docs: fix the example of a plugin setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Feb 29, 2024
1 parent 8b6ba54 commit 5a51146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plugins/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ require("bar"):setup {
```lua
-- ~/.config/yazi/plugins/bar.yazi/init.lua
return {
setup(state, opts)
setup = function(state, opts)
-- Save the user configuration to the plugin's state
state.key1 = opts.key1
state.key2 = opts.key2
Expand Down

0 comments on commit 5a51146

Please sign in to comment.