Skip to content

Commit 5c1b779

Browse files
chore(build): auto-generate docs
1 parent 3d092f8 commit 5c1b779

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/plugins/ui.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,4 +703,50 @@ opts = {
703703

704704
</Tabs>
705705

706+
## [snacks.nvim](https://github.com/folke/snacks.nvim)
707+
708+
<Tabs>
709+
710+
<TabItem value="opts" label="Options">
711+
712+
```lua
713+
opts = function(_, opts)
714+
if not opts.picker then
715+
return
716+
end
717+
table.insert(opts.dashboard.preset.keys, 3, {
718+
icon = "",
719+
key = "p",
720+
desc = "Projects",
721+
action = ":lua Snacks.picker.projects()",
722+
})
723+
end
724+
```
725+
726+
</TabItem>
727+
728+
729+
<TabItem value="code" label="Full Spec">
730+
731+
```lua
732+
{
733+
"folke/snacks.nvim",
734+
opts = function(_, opts)
735+
if not opts.picker then
736+
return
737+
end
738+
table.insert(opts.dashboard.preset.keys, 3, {
739+
icon = "",
740+
key = "p",
741+
desc = "Projects",
742+
action = ":lua Snacks.picker.projects()",
743+
})
744+
end,
745+
}
746+
```
747+
748+
</TabItem>
749+
750+
</Tabs>
751+
706752
<!-- plugins:end -->

0 commit comments

Comments
 (0)