43 lines
2.6 KiB
Lua
43 lines
2.6 KiB
Lua
return {
|
|
"folke/snacks.nvim",
|
|
opts = {
|
|
notifier = { enabled = true },
|
|
dashboard = {
|
|
preset = {
|
|
pick = nil,
|
|
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 = "l", desc = "Lazy", action = ":Lazy", enabled = package.loaded.lazy ~= nil },
|
|
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
|
|
},
|
|
header = [[
|
|
|
|
████ ██████ █████ ██
|
|
███████████ █████
|
|
█████████ ███████████████████ ███ ███████████
|
|
█████████ ███ █████████████ █████ ██████████████
|
|
█████████ ██████████ █████████ █████ █████ ████ █████
|
|
███████████ ███ ███ █████████ █████ █████ ████ █████
|
|
██████ █████████████████████ ████ █████ █████ ████ ██████
|
|
]],
|
|
},
|
|
sections = {
|
|
{ section = 'header' },
|
|
{
|
|
section = "keys",
|
|
indent = 1,
|
|
padding = 1,
|
|
},
|
|
{ section = 'recent_files', icon = ' ', title = 'Recent Files', indent = 3, padding = 2 },
|
|
{ section = "startup" },
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|