From b3a49d7993801a0cd4fbac200154f1c6142c34a8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 30 Jan 2025 00:26:53 +0900 Subject: [PATCH] Apply --scheme=path where appropriate See https://github.com/junegunn/fzf/pull/4192 --- autoload/fzf/vim.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 825d8be..09bb5a8 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -455,7 +455,7 @@ function! fzf#vim#files(dir, ...) let dir = s:shortpath() endif - let args.options = ['-m', '--prompt', strwidth(dir) < &columns / 2 - 20 ? dir : '> '] + let args.options = ['--scheme', 'path', '-m', '--prompt', strwidth(dir) < &columns / 2 - 20 ? dir : '> '] call s:merge_opts(args, s:conf('files_options', [])) return s:fzf('files', args, a:000) endfunction @@ -748,7 +748,7 @@ function! fzf#vim#gitfiles(args, ...) return s:fzf('gfiles', { \ 'source': source, \ 'dir': root, - \ 'options': '-m --read0 --prompt "GitFiles> "' + \ 'options': '--scheme path -m --read0 --prompt "GitFiles> "' \}, a:000) endif @@ -766,7 +766,7 @@ function! fzf#vim#gitfiles(args, ...) let wrapped = fzf#wrap({ \ 'source': prefix . '-c color.status=always status --short --untracked-files=all', \ 'dir': root, - \ 'options': ['--ansi', '--multi', '--nth', '2..,..', '--tiebreak=index', '--prompt', 'GitFiles?> ', '--preview', preview] + \ 'options': ['--scheme', 'path', '--ansi', '--multi', '--nth', '2..,..', '--tiebreak=index', '--prompt', 'GitFiles?> ', '--preview', preview] \}) call s:remove_layout(wrapped) let wrapped.common_sink = remove(wrapped, 'sink*')