diff options
author | kylo252 <[email protected]> | 2021-10-10 21:07:41 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-10 21:07:41 +0200 |
commit | 52b74557415eb757ad4b7481b0aec8a3f98dd58d (patch) | |
tree | 9a05ec71a46c99fbdf8df0043be652b528c7c04e /tests/plugins_load_spec.lua | |
parent | e2c85df440564a62fd804555747b1652a6844a5e (diff) |
feat: add an independent lvim namespace (#1699)
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", |