Skip to content

Commit bdba2eb

Browse files
authored
chore: use g:python3_host_prog for health check
1 parent a9cbd12 commit bdba2eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/CopilotChat/health.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ end
2424
--- Run a python command and handle potential errors
2525
---@param command string
2626
local function run_python_command(command)
27-
return run_command_on_executable('python3', command)
27+
local python3_host_prog = vim.g["python3_host_prog"]
28+
return run_command_on_executable(python3_host_prog or 'python3', command)
2829
end
2930

3031
-- Add health check for python3 and pynvim

0 commit comments

Comments
 (0)