Use cowsay in the header #131
Unanswered
justinesmithies
asked this question in
Q&A
Replies: 1 comment
-
You can probably do something like that which gets you pretty close. You need to have local cowsay = function()
local max_width = 80
local fortune_result = require('alpha.fortune')({ max_width = max_width })
local text = table.concat({ unpack(fortune_result, 2, #fortune_result) }, '\n')
local result = vim.fn.system(string.format('cowsay -W %s "%s"', max_width, text))
return result
end Then it depends on your config, but you can do something along the lines of require'alpha.themes.dashboard'.section.header.val = cowsay()
require'alpha'.setup(require'alpha.themes.dashboard'.opts)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use cowsay in the header just like you can in startify ? If so can you show me an example config for such a setup.
Beta Was this translation helpful? Give feedback.
All reactions