From 128292e279c1d78b657158dada97eb3fd58f8396 Mon Sep 17 00:00:00 2001 From: Victor Cabello Date: Thu, 10 Apr 2025 11:15:11 -0600 Subject: [PATCH] fix(source.lua): correct method call for client check Updated the `is_stopped` method call to use colon syntax in `source.is_available` function. This ensures proper invocation of the method and avoids potential runtime errors. --- lua/copilot_cmp/source.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/copilot_cmp/source.lua b/lua/copilot_cmp/source.lua index 84bed53..d32a33b 100644 --- a/lua/copilot_cmp/source.lua +++ b/lua/copilot_cmp/source.lua @@ -20,7 +20,7 @@ end source.is_available = function(self) -- client is stopped. - if self.client.is_stopped() or not self.client.name == "copilot" then + if self.client:is_stopped() or not self.client.name == "copilot" then return false end