Skip to content

Commit

Permalink
[neovim] Set 'dir' to the current direcotry
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Feb 25, 2017
1 parent 0b940e4 commit cd59e5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit cd59e5d

@aerosol
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.