<leader>ps not working with ripgrep
em2943 opened this issue · 3 comments
em2943 commented
hey I installed ripgrep as said in the readme but <leader>ps
still doesn't work.
em2943 commented
now working
aiuhjv1 commented
I'm just going to put this here in case anyone else encounters the issue I did that is similar to this one. If after installing ripgrep the <leader>ps
keymap isn't working you can try troubleshooting with these steps:
- Run
:checkhealth
command in normal mode inside vim. Navigate down to telescope and see if you have any errors. For myself I had:ERROR rg: not found.
live-grepfinder will not function without [BurntSushi/ripgrep](https://github.com/BurntSushi/ripgrep) installed.
This indicated that telescope couldn't find ripgrep even though it was installed. - Run
which rg
in your terminal. Because I was able to execute commands likerg -i requires
and get a response in my terminal, I had assumed that the ripgrep binary (rg) was already on my PATH. It wasn't until I triedwhich rg
that I realized that it wasn't. I'm still not sure why, but when I installed ripgrep with homebrew my cellar isn't symlinked to 'usr/local/bin` so it wasn't added to PATH, but I was still able to execute it. - Either way, the fix was to find the location of the binary by checking the output of my
homebrew install ripgrep
command and then add that to my my PATH in~/.bash_profile
. After that when I ran:checkhealth
telescope had:OK plenary installed
and when I executed<leader>ps
withGrep > requires
I was able to see files.
Hope this helps.
em2943 commented
thanks