fix: invalid call for stopping LSP clients
This commit is contained in:
+2
-2
@@ -91,7 +91,7 @@ end
|
|||||||
---@param bufnr integer
|
---@param bufnr integer
|
||||||
function M:on_attach(client, bufnr)
|
function M:on_attach(client, bufnr)
|
||||||
if self.client and self.client.id ~= client.id then
|
if self.client and self.client.id ~= client.id then
|
||||||
self.client.stop(true)
|
self.client:stop(true)
|
||||||
end
|
end
|
||||||
self.client = client
|
self.client = client
|
||||||
self.attached_buffers = self.attached_buffers or {}
|
self.attached_buffers = self.attached_buffers or {}
|
||||||
@@ -290,7 +290,7 @@ function M:deinit()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if self.client then
|
if self.client then
|
||||||
self.client.stop(true)
|
self.client:stop(true)
|
||||||
self.client = nil
|
self.client = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user