feat(extras): LazyExtras can now manage user extras lua/plugins/extras. Fixes #1681

This commit is contained in:
Folke Lemaitre
2023-10-12 21:47:31 +02:00
parent c9892652d2
commit 1bcf6b9a28
3 changed files with 74 additions and 41 deletions

View File

@ -2,10 +2,10 @@ local Config = require("lazyvim.config")
-- Some extras need to be loaded before others
local prios = {
["editor.aerial"] = 100,
["editor.symbols-outline"] = 100,
["test.core"] = 1,
["dap.core"] = 1,
["lazyvim.plugins.extras.editor.aerial"] = 100,
["lazyvim.plugins.extras.editor.symbols-outline"] = 100,
["lazyvim.plugins.extras.test.core"] = 1,
["lazyvim.plugins.extras.dap.core"] = 1,
}
table.sort(Config.json.data.extras, function(a, b)
@ -19,5 +19,5 @@ end)
---@param extra string
return vim.tbl_map(function(extra)
return { import = "lazyvim.plugins.extras." .. extra }
return { import = extra }
end, Config.json.data.extras)