Comments (18)
It would be helpful if you include your set up and the error you are facing.
- What is your operating system, vim version?
- Which grep program are you trying to use?
- What are your relevant
vimrc
orinit.vim
lines?
from vim-bettergrep.
Hi @qalshidi ,
Thank you for the revert. I am trying to use ripgrep
for this. This is my vim config(https://github.com/sansyrox/macsimus/) .
from vim-bettergrep.
Now, that I try with git grep
it is working. What should put in here let g:bettergrepprg = "<some_grepper>"
for ripgrep to work?
from vim-bettergrep.
Usually it will auto-configure ripgrep by itself, but if you want to explicitly do it then:
let g:bettergrepprg = "rg --vimgrep"
should suffice
from vim-bettergrep.
Hey @qalshidi ,
I tried adding this, but this doesn't work. Is there a possibility to get debug logs?
from vim-bettergrep.
Can you please let me know the error message? "this doesn't work" is not very helpful. If there is no error message can you be clear on the behavior. Does it simply find nothing?
from vim-bettergrep.
@qalshidi , that is the issue. It doesn't give out an error message. It doesn't return any search results.
When I use Rg in FZF, it then gives out a correct result.
from vim-bettergrep.
Keep in mind it works on my setup but not yours. So can you make a reproducible set up so that I may test why it's not working? Also what OS and vim version are you using?
from vim-bettergrep.
@qalshidi , I using macOS 11.4 20F71 x86_64
and NVIM v0.6.0-dev+1490-g3de777d25 Build type: Release
from vim-bettergrep.
@qalshidi , you can install it using this command
bash <(curl -s https://raw.githubusercontent.com/sansyrox/macsimus/main/utils/install.sh)
This is my neovim config: https://github.com/sansyrox/macsimus/
from vim-bettergrep.
I think I know your issue. You may be searching in a folder with a very large amount of text. If git grep
works better then rg
is probably ignoring the vcs and taking a while to return with results since it runs asynchronously. Try:
- Creating a new folder.
- `echo 'this is a test' > file.txt
nvim
:Grep test
And that should work as expected with ripgrep.
Can you tell me where exactly have you tested this with? Have you tried it in a simple folder like I showed?
from vim-bettergrep.
Hi @qalshidi , sorry for the late revert.
I tried this. Even with a single file with a single line, ripgrep doesn't work.
from vim-bettergrep.
When you do the single file with a single line what does :pwd
output in Neovim?
from vim-bettergrep.
@qalshidi , :pwd
shows the name of that directory only. But something strange has happened now. Even "Grep" has stopped working.
from vim-bettergrep.
However, GrepperRg
works.
from vim-bettergrep.
I have checked the code for :GrepperRg
and made some fixes that may work. Please update your vim-bettergrep
and try again.
from vim-bettergrep.
@qalshidi , it is still not working for me. I'll try to run it on a fresh neovim install and see if it works.
from vim-bettergrep.
Closed.
from vim-bettergrep.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-bettergrep.