configured dashboard

This commit is contained in:
Oliver Hartmann 2024-11-19 08:12:05 +00:00
parent f45d6ebb13
commit bdee2b0401

View File

@ -12,7 +12,34 @@ return {
quickfile = { enabled = true },
statuscolumn = { enabled = true },
words = { enabled = true },
dashboard = { enabled = true },
dashboard = {
sections = {
{ section = 'header' },
{
pane = 2,
section = 'terminal',
cmd = 'colorscript -e square',
height = 5,
padding = 1,
},
{ 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 = vim.fn.isdirectory('.git') == 1,
cmd = 'hub status --short --branch --renames',
height = 5,
padding = 1,
ttl = 5 * 60,
indent = 3,
},
{ section = 'startup' },
},
},
},
keys = {
{