aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/after/plugin/fzf.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/.vim/after/plugin/fzf.vim b/.vim/after/plugin/fzf.vim
index 4812000..5b23416 100644
--- a/.vim/after/plugin/fzf.vim
+++ b/.vim/after/plugin/fzf.vim
@@ -32,7 +32,10 @@ function! s:fzf_qf_sink(line) abort
endfunction
let s:command_git_main_branch = 'git symbolic-ref --short refs/remotes/origin/HEAD'
-let s:command_git_patch_files_changed = 'git diff --name-only --merge-base $('
+let s:command_git_patch_files_changed = 'git diff'
+ \ . ' --name-only'
+ \ . ' --relative'
+ \ . ' --merge-base $('
\ . s:command_git_main_branch . ')'
command! FzfQuickFix call fzf#run({