test: detect old refs to plugins in extras

This commit is contained in:
Folke Lemaitre 2025-10-20 10:55:05 +02:00
parent 2682ce0ab9
commit 64377ba4de
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -1,4 +1,5 @@
---@module 'luassert' ---@module 'luassert'
---@module 'lazy'
local Icons = require("mini.icons") local Icons = require("mini.icons")
@ -72,6 +73,17 @@ describe("Extra", function()
{ "nvim-treesitter/nvim-treesitter", opts = { ensure_installed = {} } }, { "nvim-treesitter/nvim-treesitter", opts = { ensure_installed = {} } },
mod, mod,
}, { optional = true }) }, { optional = true })
it("it has no renamed plugins", function()
for _, p in pairs(spec.plugins) do
local short_url = p[1]
assert(
not LazyVim.plugin.renames[short_url],
"Plugin " .. short_url .. " has been renamed to " .. (LazyVim.plugin.renames[short_url] or "")
)
end
end)
local lspconfig = spec.plugins["nvim-lspconfig"] local lspconfig = spec.plugins["nvim-lspconfig"]
if lspconfig then if lspconfig then
it("does not install LSP servers with mason.nvim", function() it("does not install LSP servers with mason.nvim", function()