If you have fd
installed, telescope uses it's settings including ignore files (including .ignore
and .gitignore
etc). So if have the default settings for fd
to show hidden files, telescope will respect that.
Otherwise, if you want to have hidden files only in telescope without changing the default behavior of fd
, when using your key binding, change it as follows:
vim.keymap.set("n", "<leader>ff", function() builtin.find_files({hidden=true}) end, {})
Edit: Change to keybind format Edit2: Wrap builtin in function call