From a49892f1277198df2bf56246a0abb1ba95674244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Donk=C3=B3?= Date: Sat, 18 Feb 2023 16:49:12 +0100 Subject: [PATCH] feat(project): add project management --- lua/lazyvim/plugins/ui.lua | 1 + lua/lazyvim/plugins/util.lua | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index ef255bb9..a83b1b03 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -241,6 +241,7 @@ return { dashboard.button("f", " " .. " Find file", ":Telescope find_files "), dashboard.button("n", " " .. " New file", ":ene startinsert "), dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles "), + dashboard.button("p", " " .. " Projects", ":Telescope projects "), dashboard.button("g", " " .. " Find text", ":Telescope live_grep "), dashboard.button("c", " " .. " Config", ":e $MYVIMRC "), dashboard.button("s", "勒" .. " Restore Session", [[:lua require("persistence").load() ]]), diff --git a/lua/lazyvim/plugins/util.lua b/lua/lazyvim/plugins/util.lua index be3708e6..5c094ffc 100644 --- a/lua/lazyvim/plugins/util.lua +++ b/lua/lazyvim/plugins/util.lua @@ -22,6 +22,18 @@ return { }, }, + -- 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" }, + }, + } + -- library used by other plugins { "nvim-lua/plenary.nvim", lazy = true },