summaryrefslogtreecommitdiff
path: root/tests/plugins_load_spec.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-10-21 07:48:10 +0200
committerkylo252 <[email protected]>2021-10-21 07:48:10 +0200
commit30de3736baec9a72134205de91f3388e3ea68bcf (patch)
treec0079f51d68c61316726f104bae963c5f0371571 /tests/plugins_load_spec.lua
parentb98264042f558751483e2c993ebed11a5bcbb1de (diff)
parent25747cfff457d5375b6141588d81017ca515ffcb (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'tests/plugins_load_spec.lua')
-rw-r--r--tests/plugins_load_spec.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/plugins_load_spec.lua b/tests/plugins_load_spec.lua
index cf9ea3b6..08c96c12 100644
--- a/tests/plugins_load_spec.lua
+++ b/tests/plugins_load_spec.lua
@@ -1,9 +1,11 @@
local a = require "plenary.async_lib.tests"
a.describe("plugin-loader", function()
+ local plugins = require "lvim.plugins"
+ local loader = require "lvim.plugin-loader"
+
a.it("should be able to load default packages without errors", function()
- local plugins = require "plugins"
- require("plugin-loader"):load { plugins, lvim.plugins }
+ loader:load { plugins, lvim.plugins }
-- TODO: maybe there's a way to avoid hard-coding the names of the modules?
local startup_plugins = {
@@ -16,10 +18,9 @@ a.describe("plugin-loader", function()
end)
a.it("should be able to load lsp packages without errors", function()
- local plugins = require "plugins"
- require("plugin-loader"):load { plugins, lvim.plugins }
+ loader:load { plugins, lvim.plugins }
- require("lsp").setup()
+ require("lvim.lsp").setup()
local lsp_packages = {
"lspconfig",