Skip to content

Commit ee32a28

Browse files
committed
fix: curl detection
1 parent 5406260 commit ee32a28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/copilot/lsp/binary.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ end
8787
local function download_file(url, local_server_zip_filepath, local_server_zip_path)
8888
logger.notify("current version of copilot-language-server is not downloaded, downloading")
8989

90-
if (vim.fn.executable("curl") ~= 1) and (vim.fn.executable("wget") == 1) then
90+
if (vim.fn.executable("curl") ~= 1) and (vim.fn.executable("wget") ~= 1) then
9191
logger.error("neither curl nor wget is available, please make sure one of them is installed")
9292
M.initialization_failed = true
9393
return false
@@ -262,9 +262,9 @@ function M.get_server_info(client)
262262
local copilot_server_info = M.get_copilot_server_info()
263263

264264
if client then
265-
return copilot_server_info.path .. "/" .. copilot_server_info().filename
265+
return copilot_server_info.path .. "/" .. copilot_server_info.filename
266266
else
267-
return copilot_server_info.path .. "/" .. copilot_server_info().filename .. " " .. "not running"
267+
return copilot_server_info.path .. "/" .. copilot_server_info.filename .. " " .. "not running"
268268
end
269269
end
270270

0 commit comments

Comments
 (0)