aboutsummaryrefslogtreecommitdiff
path: root/lua/startup/functions.lua
diff options
context:
space:
mode:
authormax397574 <[email protected]>2022-01-15 20:39:29 +0100
committermax397574 <[email protected]>2022-01-15 20:39:29 +0100
commitfefba0a70d8de780e5366e53baea9b4ca63b2698 (patch)
tree31dd6369f78847e2482e3a1e97b430efc6737383 /lua/startup/functions.lua
parentbe883e02b3ca7b49f0fd338c35ecdb65ff44a2a6 (diff)
chore: autoformat with stylua
Diffstat (limited to 'lua/startup/functions.lua')
-rw-r--r--lua/startup/functions.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/lua/startup/functions.lua b/lua/startup/functions.lua
index 63c26df..bcc4248 100644
--- a/lua/startup/functions.lua
+++ b/lua/startup/functions.lua
@@ -9,32 +9,32 @@ local quotes = require("startup.quotes")
---Returns a random programming quote
---@return table: Lines of text for the quote
function functions.quote()
- math.randomseed(os.clock())
- local index = math.random() * #quotes
- return quotes[math.floor(index) + 1]
+ math.randomseed(os.clock())
+ local index = math.random() * #quotes
+ return quotes[math.floor(index) + 1]
end
---Returns a string with the number of loaded Packer Plugins
---@return string: String with info about the number of loaded plugins
function functions.packer_plugins()
- if packer_plugins then
- return {
- string.format(
- "Total plugins (packer.nvim): %d",
- vim.tbl_count(packer_plugins)
- ),
- }
- else
- return ""
- end
+ if packer_plugins then
+ return {
+ string.format(
+ "Total plugins (packer.nvim): %d",
+ vim.tbl_count(packer_plugins)
+ ),
+ }
+ else
+ return ""
+ end
end
---Returns the current date and time
---@return table: Table with a string for the date and one for the time
function functions.date_time()
- local clock = " " .. os.date("%H:%M")
- local date = " " .. os.date("%d-%m-%y")
- return { clock, date }
+ local clock = " " .. os.date("%H:%M")
+ local date = " " .. os.date("%d-%m-%y")
+ return { clock, date }
end
return functions