mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
test: detect old refs to plugins in extras
This commit is contained in:
parent
2682ce0ab9
commit
64377ba4de
1 changed files with 12 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue