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/diagnostic_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/diagnostic_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp/diagnostic_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp/diagnostic_spec.lua b/test/functional/plugin/lsp/diagnostic_spec.lua index ca9196562c..4ecb056d01 100644 --- a/test/functional/plugin/lsp/diagnostic_spec.lua +++ b/test/functional/plugin/lsp/diagnostic_spec.lua @@ -89,7 +89,7 @@ describe('vim.lsp.diagnostic', function() return extmarks end - client_id = assert(vim.lsp.start_client { + client_id = assert(vim.lsp.start({ cmd_env = { NVIM_LUA_NOTRACK = '1', }, @@ -101,7 +101,7 @@ describe('vim.lsp.diagnostic', function() '--headless', }, offset_encoding = 'utf-16', - }) + }, { attach = false })) end) fake_uri = 'file:///fake/uri' |