mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-25 13:15:04 +02:00
feat(defaults): new installs now default to snacks picker/explorer. Existing installs don't change.
This commit is contained in:
parent
b4c24a3fe8
commit
25d90b54a3
3 changed files with 19 additions and 7 deletions
|
@ -97,6 +97,8 @@ function M.migrate()
|
|||
return vim.tbl_contains(ai, name) and ("lazyvim.plugins.extras.ai." .. name) or extra
|
||||
end)
|
||||
end, json.data.extras or {})
|
||||
elseif json.data.version == 7 then
|
||||
json.data.install_version = 7
|
||||
end
|
||||
|
||||
M.save()
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue