✨ feat(nvim): changed projects.nvim to repo.nvim extra
now it updates for all the new git repos added to the system
This commit is contained in:
parent
1030061c2c
commit
1ef123907f
3 changed files with 36 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -44,7 +44,8 @@ return {
|
|||
dashboard.button("f", " " .. " Find file", "<cmd> Telescope find_files <cr>"),
|
||||
dashboard.button("n", " " .. " New file", "<cmd> ene <BAR> startinsert <cr>"),
|
||||
dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
|
||||
dashboard.button("p", " " .. " Projects", "<cmd>Telescope projects <CR>"),
|
||||
dashboard.button("p", " " .. " Projects/Repos", "<cmd>Telescope repo list <CR>"),
|
||||
dashboard.button("z", " " .. " Zoxide", "<cmd>Telescope zoxide list <CR>"),
|
||||
dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
|
||||
dashboard.button("G", " " .. " Git", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>"),
|
||||
dashboard.button("c", " " .. " Config", "<cmd> lua require('lazyvim.util').telescope.config_files()() <cr>"),
|
||||
|
|
33
.config/nvim/lua/plugins/extras/util/repo.lua
Normal file
33
.config/nvim/lua/plugins/extras/util/repo.lua
Normal file
|
@ -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 = {
|
||||
{ "<leader>fp", "<cmd>Telescope repo list<cr>", desc = "Projects (~/Repos)" },
|
||||
{
|
||||
"<leader>fP",
|
||||
"<cmd>lua require'telescope'.extensions.repo.list{search_dirs = { '~/' }}<cr>",
|
||||
desc = "Projects (System)",
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue