mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 05:16:45 +00:00
feat: make it easier to disable luarocks
This commit is contained in:
parent
105d4805ad
commit
07c067a1a8
2 changed files with 8 additions and 5 deletions
|
@ -32,10 +32,12 @@ function M.update()
|
|||
---@type LazyPkgSource[]
|
||||
local sources = {}
|
||||
for _, s in ipairs(Config.options.pkg.sources) do
|
||||
sources[#sources + 1] = {
|
||||
name = s,
|
||||
get = require("lazy.pkg." .. s).get,
|
||||
}
|
||||
if s ~= "rockspec" or Config.options.rocks.enabled then
|
||||
sources[#sources + 1] = {
|
||||
name = s,
|
||||
get = require("lazy.pkg." .. s).get,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
---@type LazyPkgCache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue