summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/git.lua2
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