From eb79fdba1316395f4268e1acf22a382999126002 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 31 Jan 2025 15:36:05 +0100 Subject: [PATCH] fix: invalid call for stopping LSP clients --- lua/lsp/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lsp/server.lua b/lua/lsp/server.lua index 075c304..9aaba26 100644 --- a/lua/lsp/server.lua +++ b/lua/lsp/server.lua @@ -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