diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-02-09 18:25:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-09 18:25:57 +0100 |
| commit | 3a7fa41857394cd2d90d00891413c12fada039c3 (patch) | |
| tree | bff862cb4e8f3623fe167f1105e9f1dac72dfb95 /lua/telescope/previewers/utils.lua | |
| parent | 993e383dd5356bf10c5cf2b5d0ac88f9c7746181 (diff) | |
fix: all git builtin respect cwd now (#517)
Diffstat (limited to 'lua/telescope/previewers/utils.lua')
| -rw-r--r-- | lua/telescope/previewers/utils.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/previewers/utils.lua b/lua/telescope/previewers/utils.lua index ac5ce86..35196e6 100644 --- a/lua/telescope/previewers/utils.lua +++ b/lua/telescope/previewers/utils.lua @@ -34,6 +34,7 @@ utils.job_maker = function(cmd, bufnr, opts) command = command, args = cmd, env = opts.env, + cwd = opts.cwd, on_exit = vim.schedule_wrap(function(j) if not vim.api.nvim_buf_is_valid(bufnr) then return end if opts.mode == "append" then |
