feat: improve dashboard

This commit is contained in:
Maurice Grönwoldt 2026-02-09 15:26:44 +01:00
commit 1bec292f72
No known key found for this signature in database
GPG key ID: FBB005FE74FEF996

View file

@ -17,6 +17,27 @@ return {
preset = { preset = {
header = header_string, header = header_string,
}, },
sections = {
{ section = "header" },
{ section = "keys", gap = 1, padding = 1 },
{ pane = 2, icon = "", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
{ pane = 2, icon = "", title = "Projects", section = "projects", indent = 2, padding = 1 },
{
pane = 2,
icon = "",
title = "Git Status",
section = "terminal",
enabled = function()
return Snacks.git.get_root() ~= nil
end,
cmd = "git status --short --branch --renames",
height = 5,
padding = 1,
ttl = 5 * 60,
indent = 3,
},
{ section = "startup" },
},
}, },
explorer = { enabled = false }, explorer = { enabled = false },
input = { enabled = true }, input = { enabled = true },
@ -36,6 +57,13 @@ return {
end, end,
desc = "Notification History", desc = "Notification History",
}, },
{
"<leader>od",
function()
Snacks.dashboard()
end,
desc = "Dashboard",
},
{ {
"<leader>gg", "<leader>gg",
function() function()