feat: update ministarter with rice

This commit is contained in:
Youwen Wu 2024-12-29 19:18:48 -08:00
parent 87973cbd7b
commit 4a99294738
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 93 additions and 6 deletions

View file

@ -14,6 +14,7 @@ return {
require("plugins.by-lang.latex"), require("plugins.by-lang.latex"),
require("plugins.neogit"), require("plugins.neogit"),
require("plugins.obsidian"), require("plugins.obsidian"),
require("plugins.starter"),
{ "vim-wakatime" }, { "vim-wakatime" },
{ "clangd_extensions.nvim" }, { "clangd_extensions.nvim" },
{ "vim-sleuth" }, { "vim-sleuth" },
@ -61,12 +62,6 @@ return {
require("mini.surround").setup() require("mini.surround").setup()
end, end,
}, },
{
"mini.starter",
after = function()
require("mini.starter").setup()
end,
},
{ {
"fidget.nvim", "fidget.nvim",
after = function() after = function()

92
lua/plugins/starter.lua Normal file
View file

@ -0,0 +1,92 @@
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
cotheoremsinto ffee.
- 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,
}