diff options
author | Maria José Solano <majosolano99@gmail.com> | 2024-12-04 05:14:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-04 05:14:47 -0800 |
commit | e56437cd48f7df87ccdfb79812ee56241c0da0cb (patch) | |
tree | 95ace99b60a4b237f714c17717788a1e08d18247 /test/functional/plugin/lsp_spec.lua | |
parent | b079a9d2e76062ee7275e35a4623108550e836a5 (diff) | |
download | rneovim-e56437cd48f7df87ccdfb79812ee56241c0da0cb.tar.gz rneovim-e56437cd48f7df87ccdfb79812ee56241c0da0cb.tar.bz2 rneovim-e56437cd48f7df87ccdfb79812ee56241c0da0cb.zip |
feat(lsp): deprecate vim.lsp.start_client #31341
Problem:
LSP module has multiple "start" interfaces.
Solution:
- Enhance vim.lsp.start
- Deprecate vim.lsp.start_client
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index e30d1ba411..e735e20ff5 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -95,7 +95,7 @@ describe('LSP', function() exec_lua(function() _G.lsp = require('vim.lsp') function _G.test__start_client() - return vim.lsp.start_client { + return vim.lsp.start({ cmd_env = { NVIM_LOG_FILE = fake_lsp_logfile, NVIM_APPNAME = 'nvim_lsp_test', @@ -112,7 +112,7 @@ describe('LSP', function() name = 'test_folder', }, }, - } + }, { attach = false }) end _G.TEST_CLIENT1 = _G.test__start_client() end) |