mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
10b9123b7d
* test: run busted in sync mode * ci: update stable release version * fix(mason): use recommended steps for sources sync
37 lines
913 B
Lua
37 lines
913 B
Lua
describe("plugin-loader", function()
|
|
local plugins = require "lvim.plugins"
|
|
local loader = require "lvim.plugin-loader"
|
|
|
|
pcall(function()
|
|
lvim.log.level = "debug"
|
|
package.loaded["lvim.core.log"] = nil
|
|
end)
|
|
|
|
it("should be able to load default packages without errors", function()
|
|
vim.go.loadplugins = true
|
|
loader.load { plugins, lvim.plugins }
|
|
|
|
-- TODO: maybe there's a way to avoid hard-coding the names of the modules?
|
|
local startup_plugins = {
|
|
"lazy",
|
|
}
|
|
|
|
for _, plugin in ipairs(startup_plugins) do
|
|
assert.truthy(package.loaded[plugin])
|
|
end
|
|
end)
|
|
|
|
it("should be able to load lsp packages without errors", function()
|
|
require("lvim.lsp").setup()
|
|
|
|
local lsp_packages = {
|
|
"lspconfig",
|
|
"nlspsettings",
|
|
"null-ls",
|
|
}
|
|
|
|
for _, plugin in ipairs(lsp_packages) do
|
|
assert.truthy(package.loaded[plugin])
|
|
end
|
|
end)
|
|
end)
|