diff options
| author | YIQUN <yiqunding@zju.edu.cn> | 2020-11-19 16:03:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 09:03:08 +0100 |
| commit | 319e8ed8922e072f83adb9a7899d39db03dccd31 (patch) | |
| tree | 10e02194c43f31c33f8bda9c20cf971cb00975ad /lua/telescope/builtin/git.lua | |
| parent | aff22f5bf107af69b0a6189debae613e36d3455f (diff) | |
Fix: cwd detection of builtin.git_ (#264)
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 4fc10f1..16d4554 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -147,7 +147,7 @@ local set_opts_cwd = function(opts) if opts.cwd then opts.cwd = vim.fn.expand(opts.cwd) else - opts.cwd = vim.fn.expand('%:p:h') + opts.cwd = vim.loop.cwd() end -- Find root of git directory and remove trailing newline characters |
