Open Canertsz opened 1 year ago
I am getting the exact same issue (no files shown, no issues in healthcheck) with this minimal config:
require('telescope').setup({
defaults = {
file_ignore_patterns = { "./node_modules/*", "node_modules", "build/*" },
}
});
local builtin = require('telescope.builtin');
vim.keymap.set('n', '<leader>ff', builtin.find_files, {});
I never had issues with it working until a couple days ago, never changed any configs on my end.
EDIT: After changing nothing, it is now working again...
EDIT 2: I have figured out why this is happening. More of an issue with sharkdp/fd instead of telescope. It's relating to a .gitignore
I have in my root ~
git repository. I use this root repository for managing my dotfiles, and the .gitignore
simply contains '*' to ignore everything by default. So when I run fd
within a directory that didn't have it's own repository, it would fallback to the root .gitignore
and then ignore all files during the search. Initializing a git repository allowed telescope to see my files again. Hope that helps anyone else with the same issue :)
@Canertsz Your issue might be with your neovim. Can you build it with LuaJIT and not Lua 5.1. Neovim builds with Luajit on default
@JLCarveth
EDIT 2: I have figured out why this is happening. More of an issue with sharkdp/fd instead of telescope. It's relating to a .gitignore I have in my root ~ git repository. I use this root repository for managing my dotfiles, and the .gitignore simply contains '*' to ignore everything by default. So when I run fd within a directory that didn't have its own repository, it would fallback to the root .gitignore and then ignore all files during the search. Initializing a git repository allowed telescope to see my files again. Hope that helps anyone else with the same issue :)
Thank you, I also have .gitignore in my ~ dir. I tried using vim many times, but telescope doesn't work at all. I tried again today, and found this your commend, can't thank you enough.
Description
i installed kickstart.nvim and tried to use telescope.nvim with space+s+f combination, telescope screen prompts but it doesn't search anyting.
i checked my dependencies with :checkhealth telescope if they broken and i saw some errors, after i re-install those dependencies everything looks fine.
if it's helpful, here is my full :checkhealth https://pastebin.run/k3zjj9d492gk
when i run :Telescope in neovim it works.
Neovim version
Operating system and version
Ubuntu 22.04
Telescope version / branch / rev
telescope 0.1.0
checkhealth telescope
Steps to reproduce
Expected behavior
Show files in directory
Actual behavior
it shows nothing
Minimal config