mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 11:19:02 +02:00
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:
parent
0c517d1f5c
commit
f8982332be
1 changed files with 15 additions and 0 deletions
|
@ -20,6 +20,7 @@ return {
|
||||||
|
|
||||||
{
|
{
|
||||||
"goolord/alpha-nvim",
|
"goolord/alpha-nvim",
|
||||||
|
optional = true,
|
||||||
opts = function(_, dashboard)
|
opts = function(_, dashboard)
|
||||||
local button = dashboard.button("p", " " .. " Projects", ":Telescope projects <CR>")
|
local button = dashboard.button("p", " " .. " Projects", ":Telescope projects <CR>")
|
||||||
button.opts.hl = "AlphaButtons"
|
button.opts.hl = "AlphaButtons"
|
||||||
|
@ -27,4 +28,18 @@ return {
|
||||||
table.insert(dashboard.section.buttons.val, 4, button)
|
table.insert(dashboard.section.buttons.val, 4, button)
|
||||||
end,
|
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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue