fdschmidt93 / telescope-egrepify.nvim

Variable user customization for telescope.live_grep to set rg flags on-the-fly
MIT License
123 stars 13 forks source link

[Help] Search current file #51

Closed Ajaymamtora closed 1 week ago

Ajaymamtora commented 2 weeks ago

Is it possible to search the current file properly? I've tried: local current_file = vim.fn.expand "%:p" opts.search_dirs = { current_file }

But the previewer breaks (it does just search the current file)

image

Ajaymamtora commented 1 week ago

Setting opts.searches_dirs to true fixes it