diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-25 23:52:56 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-25 23:52:56 +0900 |
commit | cd59e5d07b3a69a75f7c0d02efd66b6f04bb13a1 (patch) | |
tree | fbfeb21d0a231cebab808114c54d6d93e41f37ad | |
parent | 0b940e4b2ba2eb2b00541a870f9b1a23c15c9bce (diff) |
[neovim] Set 'dir' to the current direcotry
Close https://github.com/junegunn/fzf.vim/issues/308
-rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index d4e4d26e..932efde1 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) |