Skip to content

Commit f49d6e3

Browse files
committed
fix: binary custom_path folder verification
1 parent 5ffb849 commit f49d6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/lsp/binary.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ end
348348
---@param custom_server_path? string
349349
function M.setup(custom_server_path)
350350
if custom_server_path then
351-
if not vim.fn.filereadable(custom_server_path) then
351+
if vim.fn.filereadable(custom_server_path) == 0 then
352352
logger.error("copilot-language-server not found at " .. custom_server_path)
353353
return M
354354
end

0 commit comments

Comments
 (0)