When working on my dotfiles I was wondering why I couldn’t see my .config
folders. Telescope hides these hidden files by default. Here’s how I set up Telescope to show hidden files using the LazyNvim distro:
Personally, I like how LazyNvim configures Telescope to search for files in the context of root directories — this is very useful in monorepo setups. I kept that behavior by using LazyNvim’s telescope utilities from lazyvim.util
.
I then remapped the default keybindings for <leader><leader>
and <leader>ff
for searching files in the root directory and <leader>fF
to find files in the current working directory as shown above.
Setting hidden = true
allows to surface dotfiles/hidden files in search results and no_ignore = false
makes it respect the project’s .gitignore
.