feat(defaults): new installs now default to snacks picker/explorer. Existing installs don't change.

This commit is contained in:
Folke Lemaitre 2025-02-08 15:23:30 +01:00
parent b4c24a3fe8
commit 25d90b54a3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 19 additions and 7 deletions

View file

@ -81,7 +81,7 @@ end
function M.fix_imports()
local defaults ---@type table<string, LazyVimDefault>
Plugin.Spec.import = LazyVim.inject.args(Plugin.Spec.import, function(_, spec)
if LazyVim.config.json_loaded then
if LazyVim.config.json.loaded then
-- extra disabled by defaults?
defaults = defaults or LazyVim.config.get_defaults()
local def = defaults[spec.import]