Skip to content

Commit

Permalink
fix: check Python 3 provider check on health check
Browse files Browse the repository at this point in the history
Closed #84
  • Loading branch information
jellydn committed Feb 28, 2024
1 parent b59c014 commit 3903ecb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/CopilotChat/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ end
-- Add health check for python3 and pynvim
function M.check()
start('CopilotChat.nvim health check')
if vim.g.loaded_python3_provider == 0 then
warn('Python 3 provider is disabled. Please enable it to use CopilotChat.nvim')
return
end

local python_version = run_python_command('--version')

if python_version == false then
Expand Down

0 comments on commit 3903ecb

Please sign in to comment.