mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Fix support for using ripgrep with vim-dispatch #276

Open obreitwi opened 3 years ago

obreitwi commented 3 years ago

Same as ag, ripgrep supports a --vimgrep flag so that it can be used as 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.

To disable this behavior, we need to explicitly supply a root-directory to start searching in.