feat(extras): LazyExtras can now manage user extras lua/plugins/extras
. Fixes #1681
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user