PrashanthaTP / dotfiles

My dotfiles (Windows system)
1 stars 0 forks source link

Bug(Neovim,Telescope): live grep is empty #15

Closed PrashanthaTP closed 2 years ago

PrashanthaTP commented 2 years ago

Target : Neovim Plugin: nvim-telescope

Current view

nvim-telescope:live_grep

Expected view:

Grep results

PrashanthaTP commented 2 years ago

Hmmm, should work fine if you have ripgrep(rg) is in path I think.

Try changing this line https://github.com/PrashanthaTP/dotfiles/blob/f3d5c27f2799259dd166c13f70e5e42c8845fa98/.config/nvim/lua/plugins/nvim-telescope/init.lua#L3

to something like this


nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep{ vimgrep_arguments = { 'rg', '--color=never', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case' } }<cr>

Reference

PrashanthaTP commented 2 years ago

Hey, did you even type anything at all inside telescope search box? As I see in screenshot , there is not search text? It should work fine I hope if you actually type something.

PrashanthaTP commented 2 years ago

Yep ,😂 working fine and thanks for helping out anyways. closing for now.