Open aldair-aguilar-clip opened 1 year ago
make sure you have ripgrep installed. you can install it from ripgrep
Did you not read the checkhealth
? They have ripgrep installed.
same problem, My find_files
is work, but live_grep
do not work.
same problem, My
find_files
is work, butlive_grep
do not work.
In my case, it seems like can not search hidden file, like dotfiles.
same problem, My
find_files
is work, butlive_grep
do not work.In my case, it seems like can not search hidden file, like dotfiles.
My bad, It works for me now. refer following
Try add the --no-ignore
argument like this:
require('telescope').setup {
defaults = {
-- See ~/.local/share/nvim/lazy/telescope.nvim/lua/telescope/finders/async_job_finder.lua
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--no-ignore",
},
},
}
Is this still an issue? My recommendations are:
rg
is installed and workingvimgrep_arguments
setting for telescope is working outside of telescoperg
respects .gitignore
, .ignore
, .rgignore
by defaultnvim -u minimal_config.lua
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
require("telescope").setup {}
end,
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
Description
Hello everyone! I come across this issue with a new fresh instalation of Telescope. The live_grep is not showing any results and idk why.
The find files is working normally
keymap("n", "<C-p>", "<cmd>lua require('telescope.builtin').live_grep()<cr>", opts)
Neovim version
Operating system and version
macOS Monterey 12.6.1
Telescope version / branch / rev
telesciope 0.1.0
checkhealth telescope
Steps to reproduce
Expected behavior
Showing the search results of some string
Actual behavior
Is not showing any in the screen
Minimal config