hauleth / hauleth/asyncdo.vim

:Grep example suddenly stops working

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
28
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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(0, &grepprg, )
```

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(0, &makeprg, )

autocmd! BufWritePost Make -f compact %
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.