From b3b3270082d4dba840a86aa98a82618eb66f6563 Mon Sep 17 00:00:00 2001 From: jordanyono Date: Thu, 20 Nov 2025 17:44:45 -0500 Subject: [PATCH] hidden greps --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3a5bab6e..63698e51 100644 --- a/init.lua +++ b/init.lua @@ -577,7 +577,7 @@ require('lazy').setup({ prompt_title = 'Live Grep (All Files)', -- This function adds the flags to the underlying grep command additional_args = function(args) - return { '--hidden', '--no-ignore', '--no-ignore-parent' } + return { '--hidden', '--no-ignore', '--no-ignore-parent', '--glob=!**/.git/*' } end, } end, { desc = '[S]earch [H]idden [G]rep)' }) @@ -588,6 +588,7 @@ require('lazy').setup({ hidden = true, -- Show hidden dotfiles no_ignore = true, -- Ignore .gitignore rules 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,