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 = {
{ 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,