hidden greps

This commit is contained in:
jordanyono 2025-11-20 17:44:45 -05:00
parent 357bbdb942
commit b3b3270082
1 changed files with 2 additions and 1 deletions

View File

@ -577,7 +577,7 @@ require('lazy').setup({
prompt_title = 'Live Grep (All Files)', prompt_title = 'Live Grep (All Files)',
-- This function adds the flags to the underlying grep command -- This function adds the flags to the underlying grep command
additional_args = function(args) additional_args = function(args)
return { '--hidden', '--no-ignore', '--no-ignore-parent' } return { '--hidden', '--no-ignore', '--no-ignore-parent', '--glob=!**/.git/*' }
end, end,
} }
end, { desc = '[S]earch [H]idden [G]rep)' }) end, { desc = '[S]earch [H]idden [G]rep)' })
@ -588,6 +588,7 @@ require('lazy').setup({
hidden = true, -- Show hidden dotfiles hidden = true, -- Show hidden dotfiles
no_ignore = true, -- Ignore .gitignore rules no_ignore = true, -- Ignore .gitignore rules
no_ignore_parent = true, -- Ignore .gitignore rules of all parents, too no_ignore_parent = true, -- Ignore .gitignore rules of all parents, too
file_ignore_patterns = { '.git/' }, -- <--- Explicitly remove the .git folder
} }
end, { desc = 'Find All Files' }) end, { desc = 'Find All Files' })
end, end,