feat(mini.ai): mini.ai is back in core with some improved features. Removing it was a mistake.

This commit is contained in:
Folke Lemaitre 2024-05-18 21:52:16 +02:00
parent 4105c0ad3a
commit d8644c4715
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
8 changed files with 158 additions and 108 deletions

View file

@ -9,16 +9,8 @@ local prios = {
["lazyvim.plugins.extras.dap.core"] = 1,
}
local used = {} ---@type table<string, boolean>
---@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)
Config.json.data.extras = LazyVim.dedup(Config.json.data.extras)
table.sort(Config.json.data.extras, function(a, b)
local pa = prios[a] or 10