feat(project): add to mini.starter (#640)

* feat(project): add to mini.starter

* fix(project): make alpha and mini.starter optional
This commit is contained in:
Jonas Holst Damtoft
2023-05-22 20:30:18 +02:00
committed by GitHub
parent 0c517d1f5c
commit f8982332be

View File

@ -20,6 +20,7 @@ return {
{
"goolord/alpha-nvim",
optional = true,
opts = function(_, dashboard)
local button = dashboard.button("p", "" .. " Projects", ":Telescope projects <CR>")
button.opts.hl = "AlphaButtons"
@ -27,4 +28,18 @@ return {
table.insert(dashboard.section.buttons.val, 4, button)
end,
},
{
"echasnovski/mini.starter",
optional = true,
opts = function(_, opts)
local items = {
{
name = "Projects",
action = "Telescope projects",
section = string.rep(" ", 22) .. "Telescope",
},
}
vim.list_extend(opts.items, items)
end,
},
}