-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnacks.lua
More file actions
44 lines (42 loc) · 1.38 KB
/
snacks.lua
File metadata and controls
44 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
return {
"snacks.nvim",
opts = {
picker = {
sources = {
explorer = {
hidden = false,
ignored = false,
},
files = {
hidden = false, -- show dotfiles in fuzzy finder
ignored = false, -- optional: show gitignored files
},
},
},
dashboard = {
preset = {
pick = function(cmd, opts)
return LazyVim.pick(cmd, opts)()
end,
header = [[
▀████████▄█████▄
██ ██ ██
▓█ ██ ██ █████
▓█ ▓█ ██
▓▓ ▓▓ ▓▓
▒▓ ▒▓ ▓▓
▒ ▒▓▒ ▒▒▒ ▒▒▓▒
]],
-- stylua: ignore
---@type snacks.dashboard.Item[]
keys = {
{ icon = "", key = "e", desc = "File tree", action = ":lua Snacks.explorer()" },
{ icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" },
{ icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
{ icon = " ", key = "l", desc = "Lazy", action = ":Lazy" },
{ icon = " ", key = "q", desc = "Quit", action = ":qa" },
},
},
},
},
}