From 6c81e38e15455fb3074d9d46c94ec2c951b5a382 Mon Sep 17 00:00:00 2001 From: bh Date: Thu, 9 Apr 2026 15:46:00 +0800 Subject: Fix indentation --- lua/config/dashboard.lua | 148 +++++++++++++++++++++++------------------------ 1 file changed, 74 insertions(+), 74 deletions(-) (limited to 'lua/config/dashboard.lua') diff --git a/lua/config/dashboard.lua b/lua/config/dashboard.lua index c317a71..3d7b9b3 100644 --- a/lua/config/dashboard.lua +++ b/lua/config/dashboard.lua @@ -3,82 +3,82 @@ local db = require("dashboard") -- Safe fortune function local function quote() - local handle = io.popen("fortune -s") -- run fortune - local result = handle:read("*a") -- read all output - handle:close() - -- Remove all newlines and carriage returns - result = result:gsub("\r",""):gsub("\n"," ") - return result + local handle = io.popen("fortune -s") -- run fortune + local result = handle:read("*a") -- read all output + handle:close() + -- Remove all newlines and carriage returns + result = result:gsub("\r",""):gsub("\n"," ") + return result end db.setup { - theme = "hyper", - config = { - week_header = { - enable = false -- or true if you want date/time header - }, - header = { - " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗", - " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║", - " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║", - " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██╔╝██╔╝██║", - " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║", - " ╚═╝ ╚═══╝╚══════╝╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝", - " ", - "  " .. os.date("%A, %B %d, %Y"), -- your custom date/day line - "", - "[TIP: To exit Vim, use a Sledgehammer!]", - "" -- optional empty line to separate from center shortcuts - }, - shortcut = { - { - icon = " ", - desc = "New File", - key = "n", - action = "enew" - }, - { - icon = " ", - desc = "Find File", - key = "f", - action = "Telescope find_files" - }, - { - icon = " ", - desc = "Recent Files", - key = "r", - action = "Telescope oldfiles" - }, - { - icon = "󰓢 ", - desc = "Open Config", - key = "c", - action = "edit ~/.config/nvim/" - }, - { - icon = "󰣪 ", - desc = "SLEDGEHAMMER!", - action = "qa" - }, - }, - packages = { - enable = true -- set to true if you want plugin count display - }, - mru = { - enable = true, -- set true if you want MRU files - limit = 10, - icon = " ", - label = "Recent", - cwd_only = false - }, - project = { - enable = false, -- set true if you want project list - limit = 8, - icon = " ", - label = "Projects", - action = "Telescope find_files cwd=" - }, - footer = { "", quote() }, - }, + theme = "hyper", + config = { + week_header = { + enable = false -- or true if you want date/time header + }, + header = { + " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗", + " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║", + " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║", + " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██╔╝██╔╝██║", + " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║", + " ╚═╝ ╚═══╝╚══════╝╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝", + " ", + "  " .. os.date("%A, %B %d, %Y"), -- your custom date/day line + "", + "[TIP: To exit Vim, use a Sledgehammer!]", + "" -- optional empty line to separate from center shortcuts + }, + shortcut = { + { + icon = " ", + desc = "New File", + key = "n", + action = "enew" + }, + { + icon = " ", + desc = "Find File", + key = "f", + action = "Telescope find_files" + }, + { + icon = " ", + desc = "Recent Files", + key = "r", + action = "Telescope oldfiles" + }, + { + icon = "󰓢 ", + desc = "Open Config", + key = "c", + action = "edit ~/.config/nvim/" + }, + { + icon = "󰣪 ", + desc = "SLEDGEHAMMER!", + action = "qa" + }, + }, + packages = { + enable = true -- set to true if you want plugin count display + }, + mru = { + enable = true, -- set true if you want MRU files + limit = 10, + icon = " ", + label = "Recent", + cwd_only = false + }, + project = { + enable = false, -- set true if you want project list + limit = 8, + icon = " ", + label = "Projects", + action = "Telescope find_files cwd=" + }, + footer = { "", quote() }, + }, } end -- cgit v1.2.3