🐛 fix(nvim): telescope-repo not having an event to load
This commit is contained in:
parent
878c52ead5
commit
7f6a76edf6
3 changed files with 16 additions and 12 deletions
|
@ -57,7 +57,7 @@
|
||||||
"multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" },
|
"multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" },
|
||||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" },
|
"neo-tree.nvim": { "branch": "v3.x", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" },
|
||||||
"neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" },
|
"neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" },
|
||||||
"neodev.nvim": { "branch": "main", "commit": "7d86c1d844b883e7bf0634af48c8ffcb2d4bb088" },
|
"neodev.nvim": { "branch": "main", "commit": "8526ce7de23e04735827a4e3f78ff634880181c5" },
|
||||||
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
|
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
|
||||||
"neotest": { "branch": "master", "commit": "6aa6e4529a4a125b49c48541b97ba146ceee2441" },
|
"neotest": { "branch": "master", "commit": "6aa6e4529a4a125b49c48541b97ba146ceee2441" },
|
||||||
"neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" },
|
"neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" },
|
||||||
|
|
|
@ -84,4 +84,3 @@
|
||||||
},
|
},
|
||||||
"version": 2
|
"version": 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"cljoly/telescope-repo.nvim",
|
"cljoly/telescope-repo.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"airblade/vim-rooter",
|
{
|
||||||
init = function()
|
"airblade/vim-rooter",
|
||||||
vim.g["rooter_cd_cmd"] = "lcd"
|
init = function()
|
||||||
vim.g["rooter_silent_chdir"] = 1
|
vim.g["rooter_cd_cmd"] = "lcd"
|
||||||
end,
|
vim.g["rooter_silent_chdir"] = 1
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ "nvim-telescope/telescope.nvim" },
|
||||||
|
{ "nvim-lua/plenary.nvim" },
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -19,7 +24,7 @@ return {
|
||||||
"--no-ignore-vcs",
|
"--no-ignore-vcs",
|
||||||
},
|
},
|
||||||
search_dirs = {
|
search_dirs = {
|
||||||
"~/Repos",
|
"~/Repos/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -38,7 +43,7 @@ return {
|
||||||
"goolord/alpha-nvim",
|
"goolord/alpha-nvim",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, dashboard)
|
opts = function(_, dashboard)
|
||||||
local button = dashboard.button("p", " " .. " Projects/Repos", "<cmd>Telescope repo list <CR>")
|
local button = dashboard.button("r", " " .. " Repos", "<cmd>Telescope repo list<CR>")
|
||||||
button.opts.hl = "AlphaButtons"
|
button.opts.hl = "AlphaButtons"
|
||||||
button.opts.hl_shortcut = "AlphaShortcut"
|
button.opts.hl_shortcut = "AlphaShortcut"
|
||||||
table.insert(dashboard.section.buttons.val, 4, button)
|
table.insert(dashboard.section.buttons.val, 4, button)
|
||||||
|
@ -50,9 +55,9 @@ return {
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local projects = {
|
local projects = {
|
||||||
action = "Telescope repo list",
|
action = "Telescope repo list",
|
||||||
desc = " Projects/Repos",
|
desc = " Repos",
|
||||||
icon = " ",
|
icon = " ",
|
||||||
key = "p",
|
key = "r",
|
||||||
}
|
}
|
||||||
|
|
||||||
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue