From 8dfcc55a42eaadb052a9f91c8fe3e1bc09e5eeaf Mon Sep 17 00:00:00 2001 From: happyjake Date: Tue, 21 Jun 2022 18:44:58 +0800 Subject: [PATCH] add --no-ext-diff avoid external diff like difft --- plugin/fzf_preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fzf_preview.vim b/plugin/fzf_preview.vim index a5254a88..c616d21e 100644 --- a/plugin/fzf_preview.vim +++ b/plugin/fzf_preview.vim @@ -67,8 +67,8 @@ if !exists('g:fzf_preview_git_status_command') endif if !exists('g:fzf_preview_git_status_preview_command') - let g:fzf_preview_git_status_preview_command = '[[ $(git diff --cached -- {-1}) != "" ]] && git diff --cached --color=always -- {-1} || ' . - \ '[[ $(git diff -- {-1}) != "" ]] && git diff --color=always -- {-1} || ' . + let g:fzf_preview_git_status_preview_command = '[[ $(git --no-pager diff --no-ext-diff --cached -- {-1}) != "" ]] && git --no-pager diff --no-ext-diff --cached --color=always -- {-1} || ' . + \ '[[ $(git --no-pager diff --no-ext-diff -- {-1}) != "" ]] && git --no-pager diff --no-ext-diff --color=always -- {-1} || ' . \ g:fzf_preview_command endif