feat: improve dashboard
This commit is contained in:
parent
2f8c9856f7
commit
1bec292f72
1 changed files with 28 additions and 0 deletions
|
|
@ -17,6 +17,27 @@ return {
|
|||
preset = {
|
||||
header = header_string,
|
||||
},
|
||||
sections = {
|
||||
{ section = "header" },
|
||||
{ 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 = function()
|
||||
return Snacks.git.get_root() ~= nil
|
||||
end,
|
||||
cmd = "git status --short --branch --renames",
|
||||
height = 5,
|
||||
padding = 1,
|
||||
ttl = 5 * 60,
|
||||
indent = 3,
|
||||
},
|
||||
{ section = "startup" },
|
||||
},
|
||||
},
|
||||
explorer = { enabled = false },
|
||||
input = { enabled = true },
|
||||
|
|
@ -36,6 +57,13 @@ return {
|
|||
end,
|
||||
desc = "Notification History",
|
||||
},
|
||||
{
|
||||
"<leader>od",
|
||||
function()
|
||||
Snacks.dashboard()
|
||||
end,
|
||||
desc = "Dashboard",
|
||||
},
|
||||
{
|
||||
"<leader>gg",
|
||||
function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue