🚀 perf(nvim): load vim-rooter when loading telescope repo instead of very-lazy event

This commit is contained in:
Sergio Laín 2023-12-23 02:01:26 +01:00
parent 86019fedab
commit 58db88e264
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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",
},
} }