From 1bec292f729c5c0de991c3705e449de6df228abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Gr=C3=B6nwoldt?= Date: Mon, 9 Feb 2026 15:26:44 +0100 Subject: [PATCH] feat: improve dashboard --- lua/plugins/snacks.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index a7eedce..4ed99cf 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -17,6 +17,27 @@ return { preset = { 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 }, input = { enabled = true }, @@ -36,6 +57,13 @@ return { end, desc = "Notification History", }, + { + "od", + function() + Snacks.dashboard() + end, + desc = "Dashboard", + }, { "gg", function()