64 lines
2.2 KiB
Lua
64 lines
2.2 KiB
Lua
return {
|
|
"folke/snacks.nvim",
|
|
priority = 1000,
|
|
lazy = false,
|
|
---@type snacks.Config
|
|
opts = {
|
|
lazygit = { enabled = true },
|
|
bigfile = { enabled = true },
|
|
|
|
picker = {},
|
|
dashboard = {
|
|
enabled = true,
|
|
width = 100,
|
|
preset = {
|
|
keys = {
|
|
{ icon = " ", key = "f", desc = "Find File", action = ":Pick files" },
|
|
{ icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" },
|
|
{
|
|
icon = " ",
|
|
key = "g",
|
|
desc = "Find Text",
|
|
action = ":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 = "U", 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" },
|
|
{ icon = " ", title = "Keymaps", section = "keys", indent = 2, padding = 1 },
|
|
{ icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
|
|
{ icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
|
|
{ section = "startup" },
|
|
},
|
|
},
|
|
},
|
|
}
|