Show hidden files in telescope

This commit is contained in:
2025-02-10 11:18:53 +01:00
parent d32667ba68
commit 3eaf1b378c

View File

@@ -0,0 +1,24 @@
return {
'nvim-telescope/telescope.nvim',
opts = {
defaults = {
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--hidden","--glob",
"!**/.git/*"
},
},
pickers = {
find_files = {
-- `hidden = true` will still show the inside of `.git/` as it's not `.gitignore`d.
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
},
}
}
}