feat(plugin): added config.defaults.cond. Fixes #640

This commit is contained in:
Folke Lemaitre 2023-03-14 11:19:51 +01:00
parent 10f5844abf
commit 9afba388fa
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 13 additions and 3 deletions

View file

@ -9,6 +9,9 @@ M.defaults = {
defaults = {
lazy = false, -- should plugins be lazy-loaded?
version = nil,
-- default `cond` you can use to globally disable a lot of plugins
-- when running inside vscode for example
cond = nil, ---@type boolean|fun(self:LazyPlugin):boolean|nil
-- version = "*", -- enable this to try installing the latest stable versions of plugins
},
-- leave nil when passing the spec as the first argument to setup()