[Files] Add g:fzf_files_options

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

No files matched your search

+1 -1
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')