From fa28ef4a6ed037a528d18dfcbdd4ee192e45591b Mon Sep 17 00:00:00 2001 From: max397574 Date: Mon, 1 Nov 2021 14:15:31 +0100 Subject: =?UTF-8?q?refactor(buildingblocks):=20=F0=9F=94=84don't=20use=20l?= =?UTF-8?q?ocal=20M?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/buildingblocks/functions.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lua/startup/buildingblocks/functions.lua') diff --git a/lua/startup/buildingblocks/functions.lua b/lua/startup/buildingblocks/functions.lua index a0cdd75..cb995a5 100644 --- a/lua/startup/buildingblocks/functions.lua +++ b/lua/startup/buildingblocks/functions.lua @@ -1,4 +1,4 @@ -local M = {} +local functions = {} local quotes = { { "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.", @@ -106,13 +106,13 @@ local quotes = { }, } -function M.quote() +function functions.quote() math.randomseed(os.clock()) local index = math.random() * #quotes return quotes[math.floor(index) + 1] end -function M.startup_time() +function functions.startup_time() local time_str = "Nvim loaded in " .. vim.fn.printf( "%.3f", @@ -122,7 +122,7 @@ function M.startup_time() return { time_str } end -function M.packer_plugins() +function functions.packer_plugins() return { string.format( "Total plugins (packer.nvim): %d", @@ -131,4 +131,4 @@ function M.packer_plugins() } end -return M +return functions -- cgit v1.2.3