67 lines
1.6 KiB
Lua
67 lines
1.6 KiB
Lua
|
return {
|
||
|
{
|
||
|
"telescope.nvim",
|
||
|
dependencies = {
|
||
|
-- project management
|
||
|
{
|
||
|
"ahmedkhalf/project.nvim",
|
||
|
opts = {
|
||
|
manual_mode = true,
|
||
|
},
|
||
|
event = "VeryLazy",
|
||
|
config = function(_, opts)
|
||
|
require("project_nvim").setup(opts)
|
||
|
require("lazyvim.util").on_load("telescope.nvim", function()
|
||
|
require("telescope").load_extension("projects")
|
||
|
end)
|
||
|
end,
|
||
|
keys = {
|
||
|
{ "<leader>fp", "<Cmd>Telescope projects<CR>", desc = "Projects" },
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"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,
|
||
|
},
|
||
|
{
|
||
|
"nvimdev/dashboard-nvim",
|
||
|
optional = true,
|
||
|
opts = function(_, opts)
|
||
|
local projects = {
|
||
|
action = "Telescope projects",
|
||
|
desc = " Projects",
|
||
|
icon = " ",
|
||
|
key = "p",
|
||
|
}
|
||
|
|
||
|
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
||
|
projects.key_format = " %s"
|
||
|
|
||
|
table.insert(opts.config.center, 3, projects)
|
||
|
end,
|
||
|
},
|
||
|
}
|