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 +++++----- lua/startup/buildingblocks/headers.lua | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'lua/startup') 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 diff --git a/lua/startup/buildingblocks/headers.lua b/lua/startup/buildingblocks/headers.lua index 4df1798..d95511a 100644 --- a/lua/startup/buildingblocks/headers.lua +++ b/lua/startup/buildingblocks/headers.lua @@ -1,6 +1,6 @@ -local M = {} +local headers = {} -function M.default_header() +function headers.default_header() return { " /$$ ", " |__/ ", @@ -13,7 +13,7 @@ function M.default_header() } end -function M.hydra() +function headers.hydra() return { " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", @@ -29,7 +29,7 @@ function M.hydra() } end -function M.neovim_logo() +function headers.neovim_logo() return { "⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣄⠀⠀⠀⠀⠀⠀⠀", "⠀⠀⠀⠀⠀⠀⣀⣶⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣄⠀⠀⠀⠀⠀", @@ -53,4 +53,4 @@ function M.neovim_logo() } end -return M +return headers -- cgit v1.2.3