diff --git a/lua/lazyvim/plugins/xtras.lua b/lua/lazyvim/plugins/xtras.lua index 938087c7..a130da1e 100644 --- a/lua/lazyvim/plugins/xtras.lua +++ b/lua/lazyvim/plugins/xtras.lua @@ -8,6 +8,17 @@ local prios = { ["lazyvim.plugins.extras.dap.core"] = 1, } +local used = {} ---@type table + +---@type string[] +Config.json.data.extras = vim.tbl_filter(function(extra) + if used[extra] then + return false + end + used[extra] = true + return true +end, Config.json.data.extras) + table.sort(Config.json.data.extras, function(a, b) local pa = prios[a] or 10 local pb = prios[b] or 10