Open obreitwi opened 3 years ago
Same as ag, ripgrep supports a --vimgrep flag so that it can be used as g:ackprog.
--vimgrep
g:ackprog
However, when used via vim-dispatch, stdin is not closed which ripgrep interprets as a pattern to be supplied and hence fails to execute anything.
vim-dispatch
To disable this behavior, we need to explicitly supply a root-directory to start searching in.
Same as ag, ripgrep supports a
--vimgrep
flag so that it can be used asg:ackprog
.However, when used via
vim-dispatch
, stdin is not closed which ripgrep interprets as a pattern to be supplied and hence fails to execute anything.To disable this behavior, we need to explicitly supply a root-directory to start searching in.