2 ms·
If you don't need live updating output, you can just set grepprg and get results in the quickfix list with :grep[!] (or the location list with :lgrep[!]). if
by nerdponx 3y ago
If you don't need live updating output, you can just set grepprg and get results in the quickfix list with :grep[!] (or the location list with :lgrep[!]).
if executable('rg')
let &grepprg = 'rg --vimgrep $*'
endif
No need for Fzf/Telescope/Denite/DDU or anything else in that case.
See:
https://neovim.io/doc/user/quickfix.html#%3Agrep https://neovim.io/doc/user/quickfix.html#%3Agrep
https://neovim.io/doc/user/options.html#'grepprg' https://neovim.io/doc/user/options.html#'grepprg'
- a-dub 3y agoused to do that with glimpse when i worked with very large codebases 23 years ago! big fan of ag, ripgrep and burntsushi's rust work!