Fix: Windows preview window logic, including git diff preview (#1452)

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
psyngw
2023-01-16 12:41:07 +08:00
committed by GitHub
parent 9c37e6801b
commit bdf48c282a
3 changed files with 80 additions and 26 deletions

View File

@@ -130,6 +130,12 @@ let g:fzf_preview_window = ['hidden,right,50%,<70(up,40%)', 'ctrl-/']
" Empty value to disable preview window altogether
let g:fzf_preview_window = []
" fzf.vim needs bash to display the preview window.
" On Windows, fzf.vim will first see if bash is in $PATH, then if
" Git bash (C:\Program Files\Git\bin\bash.exe) is available.
" If you want it to use a different bash, set this variable.
" let g:fzf_preview_bash = 'C:\Git\bin\bash.exe'
```
### Command-local options