reworked the dashboard

This commit is contained in:
Oliver Hartmann 2024-11-20 13:09:02 +00:00
parent 1c0e7f6d14
commit 18c0f0063a

View File

@ -17,16 +17,17 @@ return {
sections = { sections = {
{ section = 'header' }, { section = 'header' },
{ section = 'keys', gap = 1, padding = 1 }, { 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 = 'Projects', section = 'projects', indent = 2, padding = 1 },
{ {
pane = 2, pane = 2,
icon = '', icon = '',
title = 'Git Status', title = 'Git Status',
section = 'terminal', section = 'terminal',
enabled = vim.fn.isdirectory('.git') == 1, cmd = 'output=$(CLICOLOR=1 GH_FORCE_TTY=1 gh pr status 2>&1) && echo -e "$output" || true',
cmd = 'hub status --short --branch --renames', height = 30,
height = 5, width = 80,
padding = 1, padding = 1,
ttl = 5 * 60, ttl = 5 * 60,
indent = 3, indent = 3,