asyncdo.vim icon indicating copy to clipboard operation
asyncdo.vim copied to clipboard

:Grep example suddenly stops working

Open fedemp opened this issue 7 years ago • 0 comments

I have your :Grep command example in my .init.vim. As the title says, it works great when I open nvim but it just stops getting results after a while. I have the command defined as mentioned in the docs.

command! -bang -nargs=* Grep call asyncdo#run(<bang>0, &grepprg, <f-args>)

My grepprg is rg --vimgrep. I have also tried with ag --vimgrep.

I added the flag to the status line to know if it's running and I see it running for a while (big code base).

Running :grep populates the quickfix just fine.

I also have defined specifically for Javascript files

setlocal makeprg=eslint

command! -bang -nargs=* Make call asyncdo#run(<bang>0, &makeprg, <f-args>)

autocmd! BufWritePost <buffer> Make -f compact %

and it has always worked fine. I tried disabling it, but even so :Grep stops working.

fedemp avatar Nov 09 '18 20:11 fedemp