From 42caab084d097756f01f39871c4d7e2f953f9a50 Mon Sep 17 00:00:00 2001 From: Luiz Filipe Date: Thu, 27 Mar 2025 21:57:04 -0300 Subject: [PATCH] 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 ``` --- lua/_copilot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/_copilot.lua b/lua/_copilot.lua index 55fc169a..624a6c02 100644 --- a/lua/_copilot.lua +++ b/lua/_copilot.lua @@ -28,7 +28,7 @@ copilot.lsp_start_client = function(cmd, handler_names, opts, settings) if #workspace_folders == 0 then workspace_folders = nil end - id = vim.lsp.start_client({ + id = vim.lsp.start({ cmd = cmd, cmd_cwd = vim.call('copilot#job#Cwd'), name = 'GitHub Copilot',