diff options
| author | bh <qn+git@excalibur.computer> | 2026-04-09 15:46:00 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-04-09 15:46:00 +0800 |
| commit | 6c81e38e15455fb3074d9d46c94ec2c951b5a382 (patch) | |
| tree | c103a81c733ff200b4114f3a1caee058c10f374e /lua/config/dashboard.lua | |
| parent | 0a67a5614c1716c8ccf46980e13826616aa70c28 (diff) | |
Fix indentation
Diffstat (limited to 'lua/config/dashboard.lua')
| -rw-r--r-- | lua/config/dashboard.lua | 148 |
1 files changed, 74 insertions, 74 deletions
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 |
