mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 12:12:02 -07:00
[vim] Explicitly set source to FZF_DEFAULT_COMMAND
Helps when your `$SHELL` is slow. Close #552.
This commit is contained in:
@@ -121,6 +121,10 @@ try
|
||||
throw v:exception
|
||||
endtry
|
||||
|
||||
if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)
|
||||
let dict.source = $FZF_DEFAULT_COMMAND
|
||||
endif
|
||||
|
||||
if has_key(dict, 'source')
|
||||
let source = dict.source
|
||||
let type = type(source)
|
||||
|
Reference in New Issue
Block a user