Specifying Plugin URL For Dependencies #2044
Replies: 1 comment
-
Do it like this return {
{
-- fuzzy file search
"nvim-telescope/telescope.nvim",
},
{
"yetone/avante.nvim",
dependencies = {
{ "nvim-telescope/telescope.nvim", url = "git@github.com:nodezeroio/telescope.nvim" },
-- other dependencies ...
},
},
}
That is my understanding of how it works. Taken from LazyVim docs. So, if you have multiple files where you have Telescope as a dependency, you should only define |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a plugin configuration that looks like this:
When I load the plugins I expected Lazy to merge the plugins and recognize that the dependency is already defined with a specific url, in my case:
git@github.com:nodezeroio/telescope.nvim
, but instead it loads the plugin from the default url: 'https://github.com/nvim-telescope/telescope.nvim.git'.When I explicitly set the url on the dependency like this:
It works as expected, but I am curious if there is a way to ensure that all the dependencies are configured with the custom url without having to explicitly set it for all dependencies, which is obviously tedious and error prone.
Is this the expected behavior, or is this a bug?
How could I configure the plugins to have a custom url even for dependencies of other plugins?
Beta Was this translation helpful? Give feedback.
All reactions