feat(config): allow disabling the order check with vim.g.lazyvim_check_order = false

This commit is contained in:
Folke Lemaitre 2025-02-08 20:34:17 +01:00
parent 2a608f00d4
commit 0bbce1775b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -212,6 +212,10 @@ function M.setup(opts)
"vscode", "vscode",
}) })
if vim.g.lazyvim_check_order == false then
return
end
-- Check lazy.nvim import order -- Check lazy.nvim import order
local imports = require("lazy.core.config").spec.modules local imports = require("lazy.core.config").spec.modules
local function find(pat, last) local function find(pat, last)