diff --git a/lua/lazyvim/plugins/xtras.lua b/lua/lazyvim/plugins/xtras.lua index 8b4b2ec9..e636c255 100644 --- a/lua/lazyvim/plugins/xtras.lua +++ b/lua/lazyvim/plugins/xtras.lua @@ -2,13 +2,14 @@ local Config = require("lazyvim.config") -- Some extras need to be loaded before others local prios = { - ["lazyvim.plugins.extras.editor.aerial"] = 100, - ["lazyvim.plugins.extras.editor.outline"] = 100, - ["lazyvim.plugins.extras.editor.trouble-v3"] = 100, - ["lazyvim.plugins.extras.lang.typescript"] = 5, - ["lazyvim.plugins.extras.ui.edgy"] = 2, ["lazyvim.plugins.extras.test.core"] = 1, ["lazyvim.plugins.extras.dap.core"] = 1, + ["lazyvim.plugins.extras.ui.edgy"] = 2, + ["lazyvim.plugins.extras.lang.typescript"] = 5, + ["lazyvim.plugins.extras.formatting.prettier"] = 10, + -- default priority is 50 + ["lazyvim.plugins.extras.editor.aerial"] = 100, + ["lazyvim.plugins.extras.editor.outline"] = 100, } ---@type string[] @@ -24,8 +25,8 @@ if vim.tbl_contains(compat, v) then end table.sort(extras, function(a, b) - local pa = prios[a] or 10 - local pb = prios[b] or 10 + local pa = prios[a] or 50 + local pb = prios[b] or 50 if pa == pb then return a < b end