Skip to content

Commit 42caab0

Browse files
committed
Replacing deprecated start method for neovim
From neovim v0.11 the method `vim.lsp.start_client({` became deprecated, so this commit replaces it for `vim.lsp.start` which is the healthcheck suggestion. ``` - WARNING vim.lsp.start_client() is deprecated. Feature will be removed in Nvim 0.13 - ADVICE: - use vim.lsp.start() instead. - stack traceback: /home/luizfilipe/.local/share/nvim/lazy/copilot.vim/lua/_copilot.lua:31 ```
1 parent a9228e0 commit 42caab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/_copilot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ copilot.lsp_start_client = function(cmd, handler_names, opts, settings)
2828
if #workspace_folders == 0 then
2929
workspace_folders = nil
3030
end
31-
id = vim.lsp.start_client({
31+
id = vim.lsp.start({
3232
cmd = cmd,
3333
cmd_cwd = vim.call('copilot#job#Cwd'),
3434
name = 'GitHub Copilot',

0 commit comments

Comments
 (0)