Skip to content

Commit

Permalink
feat(project): add to mini.starter (#640)
Browse files Browse the repository at this point in the history
* feat(project): add to mini.starter

* fix(project): make alpha and mini.starter optional
  • Loading branch information
Jomik committed May 22, 2023
1 parent 0c517d1 commit f898233
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lua/lazyvim/plugins/extras/util/project.lua
Expand Up @@ -20,11 +20,26 @@ return {

{
"goolord/alpha-nvim",
optional = true,
opts = function(_, dashboard)
local button = dashboard.button("p", "" .. " Projects", ":Telescope projects <CR>")
button.opts.hl = "AlphaButtons"
button.opts.hl_shortcut = "AlphaShortcut"
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,
},
}

0 comments on commit f898233

Please sign in to comment.