From 18c0f0063a7274c0c56520f58721b357229c0faf Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 20 Nov 2024 13:09:02 +0000 Subject: [PATCH] reworked the dashboard --- lua/plugins/snacks.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index 72d3f60..15fc112 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -17,16 +17,17 @@ return { sections = { { section = 'header' }, { section = 'keys', gap = 1, padding = 1 }, - { pane = 2, icon = ' ', title = 'Recent Files', section = 'recent_files', indent = 2, padding = 1 }, + { title = 'Sessions', padding = 1 }, + { pane = 1, 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 = vim.fn.isdirectory('.git') == 1, - cmd = 'hub status --short --branch --renames', - height = 5, + cmd = 'output=$(CLICOLOR=1 GH_FORCE_TTY=1 gh pr status 2>&1) && echo -e "$output" || true', + height = 30, + width = 80, padding = 1, ttl = 5 * 60, indent = 3,