aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/functions.lua
blob: 46b5cf23b4f0603e3c5f35acb6c620ef63431a93 (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