Skip to content

Commit

Permalink
chore: use g:python3_host_prog for health check
Browse files Browse the repository at this point in the history
  • Loading branch information
ktns authored Feb 11, 2024
1 parent a9cbd12 commit bdba2eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/CopilotChat/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ end
--- Run a python command and handle potential errors
---@param command string
local function run_python_command(command)
return run_command_on_executable('python3', command)
local python3_host_prog = vim.g["python3_host_prog"]
return run_command_on_executable(python3_host_prog or 'python3', command)
end

-- Add health check for python3 and pynvim
Expand Down

0 comments on commit bdba2eb

Please sign in to comment.