viminal2/lua/plugins/starter.lua

93 lines
6 KiB
Lua
Raw Normal View History

2024-12-29 19:18:48 -08:00
local headers = {
[[
]],
[[
]],
}
math.randomseed(os.time())
local function get_random_quote()
local quotes = {
[[
A Mathematician is a machine for turning coffee
into theorems.
- Paul Erdos
]],
[[
A comathematician is a machine for turning
2024-12-29 19:21:12 -08:00
cotheorems into ffee.
2024-12-29 19:18:48 -08:00
- Paul Erdos, on amphetamines
]],
[[
I have hardly ever known a mathematician who
was capable of reasoning.
- Plato
]],
[[
We'll only use as much category theory as is
necessary. Famous last words
- Professor Abramovich, Fall 2010
]],
}
local index = math.random(#quotes)
local gap = [[
]]
return gap .. quotes[index]
end
return {
"mini.starter",
after = function()
require("mini.starter").setup({
header = headers[math.random(1, #headers)],
footer = get_random_quote(),
})
end,
}