feat(telescope): Make the find_files picker ignore some bulky directories
(like .git and node_modules)
This commit is contained in:
parent
555baefbbc
commit
4d347086c1
1 changed files with 8 additions and 1 deletions
|
@ -10,8 +10,10 @@ return {
|
|||
},
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "<C-t>t", "<cmd>Telescope<cr>", desc = "Open telescope" },
|
||||
{ "<C-t>f", "<cmd>Telescope find_files<cr>", desc = "Fuzzy find files with Telescope" },
|
||||
{ "<C-p>", "<cmd>Telescope find_files<cr>", desc = "Fuzzy find files with Telescope" },
|
||||
{ "<C-p>", "<cmd>Telescope find_files<cr>", desc = "Fuzzy find files with Telescope" },
|
||||
{ "<C-t>g", "<cmd>Telescope git_files<cr>", desc = "Fuzzy find files included in git with Telescope" },
|
||||
{ "<C-t>b", "<cmd>Telescope buffers<cr>", desc = "Fuzzy find open buffers with Telescope" },
|
||||
{
|
||||
"<C-t>s",
|
||||
|
@ -23,6 +25,11 @@ return {
|
|||
pickers = {
|
||||
find_files = {
|
||||
find_command = { "rg", "--files", "--hidden", "--no-ignore-vcs" },
|
||||
|
||||
file_ignore_patterns = {
|
||||
"node_modules/",
|
||||
".git/",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue