From bdee2b0401c85dd40c93c1f2ee00377b877d6ac5 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 19 Nov 2024 08:12:05 +0000 Subject: [PATCH] configured dashboard --- lua/plugins/snacks.lua | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index c7a1b69..2fc4e41 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -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 = { { @@ -42,7 +69,7 @@ return { Snacks.words.jump(vim.v.count1) end, desc = 'Next Reference', - mode = { 'n' }, + mode = { 'n' }, }, { '',