mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +02:00
feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled
This commit is contained in:
parent
7f8e797d2b
commit
fb256f2b68
1 changed files with 14 additions and 0 deletions
|
@ -325,4 +325,18 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
if not opts.picker then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
table.insert(opts.dashboard.preset.keys, 3, {
|
||||||
|
icon = " ",
|
||||||
|
key = "p",
|
||||||
|
desc = "Projects",
|
||||||
|
action = ":lua Snacks.picker.projects()",
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue