Skip to content

Commit 9433099

Browse files
committed
Use config.git.url_format to build the url for lazy.nvim
1 parent 9ac1988 commit 9433099

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lua/lazy/core/plugin.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ function M.load()
375375
-- load specs
376376
Util.track("spec")
377377
Config.spec = Spec.new()
378-
Config.spec:parse({ vim.deepcopy(Config.options.spec), { url = "https://github.com/folke/lazy.nvim.git" } })
378+
Config.spec:parse(
379+
{ vim.deepcopy(Config.options.spec), { url = Config.options.git.url_format:format("folke/lazy.nvim") } }
380+
)
379381

380382
-- override some lazy props
381383
local lazy = Config.spec.plugins["lazy.nvim"]

0 commit comments

Comments
 (0)