From bdba2eb8a6faf2ca5c844c1802e3e04cacba765d Mon Sep 17 00:00:00 2001 From: Katsuhiko Nishimra Date: Sun, 11 Feb 2024 17:14:45 +0900 Subject: [PATCH] chore: use g:python3_host_prog for health check --- lua/CopilotChat/health.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/CopilotChat/health.lua b/lua/CopilotChat/health.lua index f109065f..18189cb3 100644 --- a/lua/CopilotChat/health.lua +++ b/lua/CopilotChat/health.lua @@ -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