From 49805748d4cefc077cc0c81e864f1757198fc3f4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 7 Jun 2024 23:02:13 +0200 Subject: [PATCH] fix(extras): load prettier extra before svelte/astro --- lua/lazyvim/plugins/xtras.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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