Skip to content

Commit ef0998e

Browse files
fix(vim.lsp): replace deprecated vim.lsp.start_client with vim.lsp.start
============================================================================== vim.deprecated: require("vim.deprecated.health").check() ~ - WARNING vim.lsp.start_client() is deprecated. Feature will be removed in Nvim 0.13 - ADVICE: - use vim.lsp.start() instead. - stack traceback: /home/USER/.local/share/nvim/lazy/copilot.vim/lua/_copilot.lua:34
1 parent 7167958 commit ef0998e

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
@@ -31,7 +31,7 @@ copilot.lsp_start_client = function(cmd, handler_names, opts, settings)
3131
-- start_client() is deprecated, but the replacement start() breaks our
3232
-- restart workflow by returning the old client that's shutting down.
3333
-- https://github.com/neovim/neovim/issues/33616
34-
id = vim.lsp.start_client({
34+
id = vim.lsp.start({
3535
cmd = cmd,
3636
cmd_cwd = vim.call('copilot#job#Cwd'),
3737
name = 'GitHub Copilot',

0 commit comments

Comments
 (0)