From 7fe0d5c7c798e2a1d6abf7d43380876a268ac462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Donk=C3=B3?= Date: Thu, 20 Apr 2023 08:14:21 +0200 Subject: [PATCH] feat(extras): added project management (#300) * feat(project): add project management * refactor: moved project to extras --------- Co-authored-by: Folke Lemaitre --- lua/lazyvim/plugins/extras/util/project.lua | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/util/project.lua diff --git a/lua/lazyvim/plugins/extras/util/project.lua b/lua/lazyvim/plugins/extras/util/project.lua new file mode 100644 index 00000000..18bd7f23 --- /dev/null +++ b/lua/lazyvim/plugins/extras/util/project.lua @@ -0,0 +1,28 @@ +return { + { + "telescope.nvim", + dependencies = { + -- project management + { + "ahmedkhalf/project.nvim", + config = function(_, opts) + require("project_nvim").setup(opts) + require("telescope").load_extension("projects") + end, + keys = { + { "fp", "Telescope projects", desc = "Projects" }, + }, + }, + }, + }, + + { + "goolord/alpha-nvim", + opts = function(_, dashboard) + local button = dashboard.button("p", " " .. " Projects", ":Telescope projects ") + button.opts.hl = "AlphaButtons" + button.opts.hl_shortcut = "AlphaShortcut" + table.insert(dashboard.section.buttons.val, 4, button) + end, + }, +}