Files

87 lines
4.4 KiB
Lua
Raw Permalink Normal View History

2025-01-26 21:17:01 -06:00
return {
2026-07-19 11:15:18 -05:00
"nvimdev/dashboard-nvim",
event = "VimEnter",
config = function()
local logo = [[
2025-01-26 21:17:01 -06:00
2025-01-27 12:43:06 -06:00
███╗ ██╗ ██████╗ ██████╗ ███╗ ██╗███████╗ ██████╗ █████╗ ██████╗ ███████╗███████╗
████╗ ██║██╔═══██╗ ██╔═══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝
██╔██╗ ██║██║ ██║ ██║ ██║██╔██╗ ██║█████╗ ██║ ███████║██████╔╝█████╗ ███████╗
██║╚██╗██║██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║ ██╔══██║██╔══██╗██╔══╝ ╚════██║
██║ ╚████║╚██████╔╝ ╚██████╔╝██║ ╚████║███████╗ ╚██████╗██║ ██║██║ ██║███████╗███████║
╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
2025-01-27 21:55:42 -06:00
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗ ██╗ ██╗ █████╗ ██████╗ ██████╗ ███████╗██████╗
██║ ██║██╔═══██╗██╔══██╗██║ ██╔╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗
██║ █╗ ██║██║ ██║██████╔╝█████╔╝ ███████║███████║██████╔╝██║ ██║█████╗ ██████╔╝
██║███╗██║██║ ██║██╔══██╗██╔═██╗ ██╔══██║██╔══██║██╔══██╗██║ ██║██╔══╝ ██╔══██╗
╚███╔███╔╝╚██████╔╝██║ ██║██║ ██╗ ██║ ██║██║ ██║██║ ██║██████╔╝███████╗██║ ██║
╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝
2025-01-27 12:43:06 -06:00
2025-01-26 21:17:01 -06:00
]]
2026-07-19 11:15:18 -05:00
local opts = {
theme = "doom",
hide = {
statusline = false,
},
config = {
header = vim.split(logo, "\n"),
center = {
{
action = 'lua require("telescope.builtin").find_files()',
desc = " Find File",
icon = " ",
key = "f",
},
{ action = "ene | startinsert", desc = " New File", icon = " ", key = "n" },
{
action = 'lua require("telescope.builtin").oldfiles()',
desc = " Recent Files",
icon = " ",
key = "r",
},
{
action = 'lua require("telescope.builtin").live_grep()',
desc = " Find Text",
icon = " ",
key = "g",
},
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" },
{
action = function()
vim.api.nvim_input("<cmd>qa<cr>")
end,
desc = " Quit",
icon = " ",
key = "q",
},
},
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
end,
},
}
2025-01-26 21:17:01 -06:00
2026-07-19 11:15:18 -05:00
require("dashboard").setup(opts)
2025-01-26 21:17:01 -06:00
2026-07-19 11:15:18 -05:00
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
2026-06-30 14:59:00 -05:00
2026-07-19 11:15:18 -05:00
vim.api.nvim_set_hl(0, "DashboardHeader", { fg = "#b39cd0", bold = true })
vim.api.nvim_set_hl(0, "DashboardFooter", { fg = "#b39cd0", bold = true })
end,
2025-01-26 21:17:01 -06:00
}