From dd65e285656a5c46c52144f4e082c8e2d1d95757 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 28 Apr 2022 14:38:32 +0200 Subject: refactor(lsp): decouple the installer setup-hook (#2536) * chore(lsp): update plugins * refactor(lsp): decouple the installer setup-hook - remove the deprecated `server:setup()` - set up the server manually with lspconfig once `server:on_ready()` has been triggered * chore: use the new lsp_installer.setup() --- tests/minimal_lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/minimal_lsp.lua b/tests/minimal_lsp.lua index 660f824b..a610fd7f 100644 --- a/tests/minimal_lsp.lua +++ b/tests/minimal_lsp.lua @@ -87,7 +87,7 @@ _G.load_config = function() server:install() end local default_opts = server:get_default_options() - setup_opts.cmd_env = default_opts.cmd_env + setup_opts = vim.tbl_deep_extend("force", setup_opts, default_opts) end if not name then -- cgit v1.2.3 From e4287b7180ad16174fa10b73ac5b3e43e605198e Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 29 Apr 2022 16:26:15 +0200 Subject: fix(lsp): undo stdpath overload to avoid datarace (#2540) --- tests/specs/bootstrap_spec.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/specs/bootstrap_spec.lua b/tests/specs/bootstrap_spec.lua index 51c3330e..9426a16c 100644 --- a/tests/specs/bootstrap_spec.lua +++ b/tests/specs/bootstrap_spec.lua @@ -12,9 +12,7 @@ a.describe("initial start", function() assert.falsy(package.loaded["lvim.impatient"]) end) - a.it("should be able to use lunarvim directories using vim.fn", function() - assert.equal(lvim_runtime_path, vim.fn.stdpath "data") - assert.equal(lvim_config_path, vim.fn.stdpath "config") + a.it("should be able to use lunarvim cache directory using vim.fn", function() assert.equal(lvim_cache_path, vim.fn.stdpath "cache") end) -- cgit v1.2.3