fix: invalid call for stopping LSP clients

This commit is contained in:
2025-01-31 15:36:05 +01:00
parent 834aa76ce7
commit eb79fdba13
+2 -2
View File
@@ -91,7 +91,7 @@ end
---@param bufnr integer
function M:on_attach(client, bufnr)
if self.client and self.client.id ~= client.id then
self.client.stop(true)
self.client:stop(true)
end
self.client = client
self.attached_buffers = self.attached_buffers or {}
@@ -290,7 +290,7 @@ function M:deinit()
end
if self.client then
self.client.stop(true)
self.client:stop(true)
self.client = nil
end