2024-03-30 19:53:17 +00:00
|
|
|
return {
|
2024-11-28 00:57:28 +00:00
|
|
|
"folke/snacks.nvim",
|
|
|
|
opts = {
|
|
|
|
dashboard = {
|
|
|
|
preset = {
|
|
|
|
header = [[ __ _ __ _
|
2024-03-30 19:53:17 +00:00
|
|
|
/ / | | / / | |
|
|
|
|
/ /__| | ___ __ __ / /__ __ _ _ | |
|
|
|
|
/ // _` | / _ \\ \ / // / \ \ / /| | | || |
|
|
|
|
/ /| (_| || __/ \ V // / \ V / | |_| || |
|
|
|
|
/_/ \__,_| \___| \_//_/ \_/ \__,_||_|
|
2024-11-28 00:57:28 +00:00
|
|
|
]],
|
2024-03-30 19:53:17 +00:00
|
|
|
-- stylua: ignore
|
2024-11-28 00:57:28 +00:00
|
|
|
---@type snacks.dashboard.Item[]
|
|
|
|
keys = {
|
|
|
|
{ icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" },
|
|
|
|
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
|
|
|
{ icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" },
|
|
|
|
{ icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
|
|
|
|
{ icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
|
|
|
|
{ icon = " ", key = "s", desc = "Restore Session", section = "session" },
|
|
|
|
{ icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
|
|
|
|
{ icon = " ", key = "l", desc = "Lazy", action = ":Lazy" },
|
|
|
|
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
2024-03-30 19:53:17 +00:00
|
|
|
},
|
|
|
|
},
|
2024-11-28 00:57:28 +00:00
|
|
|
sections = {
|
|
|
|
{ section = "header" },
|
|
|
|
{ section = "keys", gap = 1, padding = 1 },
|
|
|
|
{ section = "startup" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-30 19:53:17 +00:00
|
|
|
}
|