goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.82k stars 109 forks source link

How to add fortune at the bottom changes randomly every time dashboard is opened #154

Closed huwqchn closed 1 year ago

hermitmaster commented 1 year ago

Add something like this to your alpha config. Here is an example from my dotfiles

local config = {
  { ...existing_config... },
  {
    type = 'text',
    val = require('alpha.fortune')(),
    opts = {
      position = 'center',
      hl = 'Comment',
  },
}