fix(core): use lazy.nvim version configured by the user
This commit is contained in:
@ -1,13 +1,9 @@
|
||||
local specs = {
|
||||
-- set to HEAD for now. I'm sill making too many changes for this repo related to lazy itself
|
||||
{ "folke/lazy.nvim", version = false },
|
||||
}
|
||||
|
||||
-- only add for >=9.0.1, since there's an endless loop in earlier versions
|
||||
if require("lazyvim.config").has(">=9.1.0") then
|
||||
specs[#specs + 1] = { "LazyVim/LazyVim", priority = 10000, lazy = false, config = true }
|
||||
else
|
||||
if not require("lazyvim.config").has(">=9.1.0") then
|
||||
require("lazyvim.config").setup()
|
||||
return {}
|
||||
end
|
||||
|
||||
return specs
|
||||
return {
|
||||
{ "LazyVim/LazyVim", priority = 10000, lazy = false, config = true },
|
||||
}
|
||||
|
Reference in New Issue
Block a user