[Files] Add g:fzf_files_options

This commit is contained in:
Junegunn Choi
2016-06-24 00:45:54 +09:00
parent 25861ddf2b
commit a24a1bdaa2
3 changed files with 14 additions and 6 deletions

View File

@@ -191,7 +191,7 @@ endfunction
" Files
" ------------------------------------------------------------------
function! fzf#vim#files(dir, ...)
let args = {'options': '-m'}
let args = {'options': '-m '.get(g:, 'fzf_files_options', '')}
if !empty(a:dir)
if !isdirectory(expand(a:dir))
return s:warn('Invalid directory')