From 357bbdb942893496c317ab518e9e73f4658e601f Mon Sep 17 00:00:00 2001 From: jordanyono Date: Thu, 20 Nov 2025 17:30:16 -0500 Subject: [PATCH] adding val --- init.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/init.lua b/init.lua index 410e9945..3a5bab6e 100644 --- a/init.lua +++ b/init.lua @@ -571,6 +571,25 @@ require('lazy').setup({ vim.keymap.set('n', 'sn', function() builtin.find_files { cwd = vim.fn.stdpath 'config' } end, { desc = '[S]earch [N]eovim files' }) + + vim.keymap.set('n', 'shg', function() + builtin.live_grep { + 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' } + end, + } + end, { desc = '[S]earch [H]idden [G]rep)' }) + + vim.keymap.set('n', 'shf', function() + builtin.find_files { + prompt_title = 'Find All Files (Hidden + Ignored)', + hidden = true, -- Show hidden dotfiles + no_ignore = true, -- Ignore .gitignore rules + no_ignore_parent = true, -- Ignore .gitignore rules of all parents, too + } + end, { desc = 'Find All Files' }) end, }, -- LSP Plugins