nvim: nicer dashboard
This commit is contained in:
parent
2450f6b222
commit
80fdc97c28
1 changed files with 26 additions and 1 deletions
|
@ -8,7 +8,28 @@ return {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
opts = {
|
opts = {
|
||||||
bigfiles = { enabled = true },
|
bigfiles = { enabled = true },
|
||||||
dashboard = { enabled = true },
|
dashboard = {
|
||||||
|
enabled = true,
|
||||||
|
sections = {
|
||||||
|
{ section = "header" },
|
||||||
|
{ icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
|
||||||
|
{ icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
|
||||||
|
{
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
preset = { keys = {} },
|
||||||
|
},
|
||||||
indent = { enabled = true, animate = { enabled = false } },
|
indent = { enabled = true, animate = { enabled = false } },
|
||||||
input = { enabled = true },
|
input = { enabled = true },
|
||||||
lazygit = { enabled = true, configure = true },
|
lazygit = { enabled = true, configure = true },
|
||||||
|
@ -53,4 +74,8 @@ return {
|
||||||
extensions = { lazy_nvim = true },
|
extensions = { lazy_nvim = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"m4xshen/autoclose.nvim",
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue