Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ Most AI coding tools pull you out of your editor — into a browser, a chat wind
- [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) installed and in `$PATH`
- Optional: `+popupwin` for floating window mode
- Optional: `python3` for diff preview (`:Claude preview`)
- Note: In Windows, there is a default python3 that redirects to the Windows Store.
Run `Claude doctor` to check if you have a valid python3 installation.
If you have Python 3, but your installation uses python.exe as the executable, create a python3 symlink.

## Installation

Expand Down
14 changes: 13 additions & 1 deletion autoload/claude_code/diff.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ let s:diff_bufs = []
let s:poll_timer = -1
let s:trigger_dir = ''
let s:plugin_root = fnamemodify(resolve(expand('<sfile>:p')), ':h:h:h')
if has('win32')
let s:plugin_root = substitute(s:plugin_root, '\\', '/', 'g')
endif

" ---------------------------------------------------------------------------
" Polling — file-based IPC for hook → Vim communication
Expand Down Expand Up @@ -350,7 +353,16 @@ function! claude_code#diff#check_deps() abort
let l:results = []

if executable('python3')
call add(l:results, '[OK] python3 found')
if has('win32')
let l:ver = systemlist('python3 --version')[0]
if l:ver =~# '^Python 3\.'
call add(l:results, '[OK] python3 found (' . l:ver . ')')
else
call add(l:results, '[FAIL] python3 found but version is not 3.x (' . l:ver . ')')
endif
else
call add(l:results, '[OK] python3 found')
endif
else
call add(l:results, '[FAIL] python3 not found — required for diff preview')
endif
Expand Down
Loading