We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vim.lsp.stop_client()
Client:stop()
1 parent 9688ca7 commit 0ab400dCopy full SHA for 0ab400d
lua/copilot/client/init.lua
@@ -26,8 +26,9 @@ local M = {
26
---@param id integer
27
local function store_client_id(id)
28
if M.id and M.id ~= id then
29
- if vim.lsp.get_client_by_id(M.id) then
30
- vim.lsp.stop_client(M.id)
+ local client = vim.lsp.get_client_by_id(M.id)
+ if client then
31
+ client:stop()
32
end
33
34
@@ -240,8 +241,9 @@ function M.teardown()
240
241
vim.api.nvim_clear_autocmds({ group = M.augroup })
242
243
- if M.id then
244
245
246
247
248
249
0 commit comments