nvim-telescope / telescope-live-grep-args.nvim

Live grep with args
726 stars 40 forks source link

Live grep does not give any result #43

Closed bellaichef closed 1 year ago

bellaichef commented 1 year ago

Hi,

I'm using telescope under nvim 0.9.

Everything works fine but live grep.

Here are the installed packages : Screenshot from 2023-01-06 17-28-38

So there is :

Here is my plugins conf (only the telescope part) :

Screenshot from 2023-01-06 17-34-16

This should be enough, no ? Do I miss something ?

For info, the find files in Telescope works without any issue.

Is there any log for telescope to debug these kind of behaviour.

Thanks by advance for any help or suggestion.

bellaichef commented 1 year ago

Found what was going wrong ripgrep has to be installed first : https://github.com/BurntSushi/ripgrep

I thought that neovim plugin would be enough but I am a little bit new on it.

weeman1337 commented 1 year ago

Thanks for reporting back @bellaichef . Maybe it would make sense to implement a dependency check.

bellaichef commented 1 year ago

You are welcome.

Something like :

if vim.fn.empty(vim.fn.glob('/usr/bin/rg')) > 0 then
-- Whatever you want to do --
end

Should to the trick but I'm pretty sure that you already know what to do! ;-)