🚀 perf(nvim): load vim-rooter when loading telescope repo instead of very-lazy event
This commit is contained in:
parent
86019fedab
commit
58db88e264
1 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,13 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"cljoly/telescope-repo.nvim",
|
"cljoly/telescope-repo.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"airblade/vim-rooter",
|
||||||
|
init = function()
|
||||||
|
vim.g["rooter_cd_cmd"] = "lcd"
|
||||||
|
vim.g["rooter_silent_chdir"] = 1
|
||||||
|
end,
|
||||||
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function()
|
config = function()
|
||||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||||
|
@ -54,8 +61,4 @@ return {
|
||||||
table.insert(opts.config.center, 4, projects)
|
table.insert(opts.config.center, 4, projects)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"airblade/vim-rooter",
|
|
||||||
event = "VeryLazy",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue