diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index abf6ab2c..cd00072c 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -20,7 +20,6 @@ "lazyvim.plugins.extras.test.core", "lazyvim.plugins.extras.ui.alpha", "lazyvim.plugins.extras.util.dot", - "lazyvim.plugins.extras.util.project", "lazyvim.plugins.extras.vscode", "plugins.extras.ai.codeium", "plugins.extras.ai.gpt", @@ -69,6 +68,7 @@ "plugins.extras.util.mini-align", "plugins.extras.util.rayso", "plugins.extras.util.regex", + "plugins.extras.util.repo", "plugins.extras.util.smooth-scrolling", "plugins.extras.util.suda", "plugins.extras.util.vim-be-good", diff --git a/.config/nvim/lua/plugins/extras/ui/alpha.lua b/.config/nvim/lua/plugins/extras/ui/alpha.lua index e9df1b44..b06606bf 100644 --- a/.config/nvim/lua/plugins/extras/ui/alpha.lua +++ b/.config/nvim/lua/plugins/extras/ui/alpha.lua @@ -44,7 +44,8 @@ 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("p", " " .. " Projects/Repos", "Telescope repo list "), + dashboard.button("z", " " .. " Zoxide", "Telescope zoxide list "), dashboard.button("g", " " .. " Find text", " Telescope live_grep "), dashboard.button("G", "󰊢 " .. " Git", "FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd= lazygit"), dashboard.button("c", " " .. " Config", " lua require('lazyvim.util').telescope.config_files()() "), diff --git a/.config/nvim/lua/plugins/extras/util/repo.lua b/.config/nvim/lua/plugins/extras/util/repo.lua new file mode 100644 index 00000000..d23d832e --- /dev/null +++ b/.config/nvim/lua/plugins/extras/util/repo.lua @@ -0,0 +1,33 @@ +local Util = require("lazyvim.util") + +return { + "cljoly/telescope-repo.nvim", + opts = {}, + config = function(_, opts) + Util.on_load("telescope.nvim", function() + require("telescope").setup({ + extensions = { + repo = { + list = { + fd_opts = { + "--no-ignore-vcs", + }, + search_dirs = { + "~/Repos", + }, + }, + }, + }, + }) + require("telescope").load_extension("repo") + end) + end, + keys = { + { "fp", "Telescope repo list", desc = "Projects (~/Repos)" }, + { + "fP", + "lua require'telescope'.extensions.repo.list{search_dirs = { '~/' }}", + desc = "Projects (System)", + }, + }, +}