blob: cac0089bd56c7196516490dcee86e13704a8caaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local functions = {}
local quotes = require("startup.quotes")
function functions.quote()
math.randomseed(os.clock())
local index = math.random() * #quotes
return quotes[math.floor(index) + 1]
end
function functions.packer_plugins()
return {
string.format(
"Total plugins (packer.nvim): %d",
vim.tbl_count(packer_plugins)
),
}
end
return functions
|