Show hidden files in telescope
This commit is contained in:
24
nvim/lua/plugins/telescope.lua
Normal file
24
nvim/lua/plugins/telescope.lua
Normal 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/*" },
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user