fix(extras): automatically rename extra symbols-outline => outline. Fixes #2675
This commit is contained in:
3 files changed
+6
-2
No files matched your search
@@ -131,7 +131,7 @@ local defaults = {
|
||||
}
|
||||
|
||||
M.json = {
|
||||
version = 2,
|
||||
version = 3,
|
||||
data = {
|
||||
version = nil, ---@type string?
|
||||
news = {}, ---@type table<string, string>
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -12,7 +12,6 @@ M.deprecated_extras = {
|
||||
["lazyvim.plugins.extras.formatting.conform"] = "`conform.nvim` is now the default **LazyVim** formatter.",
|
||||
["lazyvim.plugins.extras.linting.nvim-lint"] = "`nvim-lint` is now the default **LazyVim** linter.",
|
||||
["lazyvim.plugins.extras.ui.dashboard"] = "`dashboard.nvim` is now the default **LazyVim** starter.",
|
||||
["lazyvim.plugins.extras.editor.symbols-outline"] = "The `symbols-outline` has been replaced by `outline`.",
|
||||
}
|
||||
|
||||
M.deprecated_modules = {
|
||||
|
||||
Reference in new issue
Block a user