diff options
Diffstat (limited to 'tests/plugins_load_spec.lua')
-rw-r--r-- | tests/plugins_load_spec.lua | 11 |
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", |