mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
fix(extras): automatically rename extra symbols-outline => outline. Fixes #2675
This commit is contained in:
parent
7415231855
commit
ee2e876252
3 changed files with 6 additions and 2 deletions
|
@ -74,6 +74,11 @@ function M.migrate()
|
|||
-- replace double extras module name
|
||||
return extra:gsub("^lazyvim%.plugins%.extras%.lazyvim%.plugins%.extras%.", "lazyvim.plugins.extras.")
|
||||
end, json.data.extras or {})
|
||||
elseif json.data.version == 2 then
|
||||
json.data.extras = vim.tbl_map(function(extra)
|
||||
return extra == "lazyvim.plugins.extras.editor.symbols-outline" and "lazyvim.plugins.extras.editor.outline"
|
||||
or extra
|
||||
end, json.data.extras or {})
|
||||
end
|
||||
|
||||
M.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue