File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,12 @@ M.defaults = {
41
41
-- the first package source that is found for a plugin will be used.
42
42
sources = {
43
43
" lazy" ,
44
- " rockspec" ,
44
+ " rockspec" , -- will only be used when rocks.enabled is true
45
45
" packspec" ,
46
46
},
47
47
},
48
48
rocks = {
49
+ enabled = true ,
49
50
root = vim .fn .stdpath (" data" ) .. " /lazy-rocks" ,
50
51
server = " https://nvim-neorocks.github.io/rocks-binaries/" ,
51
52
},
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ function M.update()
32
32
--- @type LazyPkgSource[]
33
33
local sources = {}
34
34
for _ , s in ipairs (Config .options .pkg .sources ) do
35
- sources [# sources + 1 ] = {
36
- name = s ,
37
- get = require (" lazy.pkg." .. s ).get ,
38
- }
35
+ if s ~= " rockspec" or Config .options .rocks .enabled then
36
+ sources [# sources + 1 ] = {
37
+ name = s ,
38
+ get = require (" lazy.pkg." .. s ).get ,
39
+ }
40
+ end
39
41
end
40
42
41
43
--- @type LazyPkgCache
You can’t perform that action at this time.
0 commit comments