diff --git a/plugin/fzf.vim b/plugin/fzf.vim index d4e4d26..932efde 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -290,6 +290,10 @@ try throw v:exception endtry + if has('nvim') && !has_key(dict, 'dir') + let dict.dir = getcwd() + endif + if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) let temps.source = tempname().(s:is_win ? '.bat' : '') call writefile((s:is_win ? ['@echo off'] : []) + split($FZF_DEFAULT_COMMAND, "\n"), temps.source)