Skip to content

Commit

Permalink
docs: Updated alpha recipe (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Infonautica authored Jan 11, 2024
1 parent 8646dd5 commit b5616f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/content/docs/recipes/alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ return {
}
```

### Customize Buttons

In order to customize buttons presented on the dashboard, you can modify `alpha` options:

```lua
return {
plugins = {
{
"goolord/alpha-nvim",
opts = function(_, opts) -- override the options using lazy.nvim
opts.section.buttons.val = {
opts.button( "h", " Say Hi" , ":echo Hello World!"),
}
end,
},
},
}
```

### Open Alpha Automatically When No More Buffers

If you want to make the Alpha dashboard open automatically when you close the last buffer in your session you can add the following in your `user/init.lua` in your `mappings` table:
Expand Down

0 comments on commit b5616f9

Please sign in to comment.