From 7a05a15b296ec2b42b3b416fe7b65551be841d17 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sun, 1 Mar 2026 13:14:52 +0000 Subject: [PATCH] made hidden files appear in live grep --- lua/plugins/functional/telescope.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/plugins/functional/telescope.lua b/lua/plugins/functional/telescope.lua index c232a17..f416d96 100644 --- a/lua/plugins/functional/telescope.lua +++ b/lua/plugins/functional/telescope.lua @@ -12,6 +12,13 @@ return { defaults = { file_ignore_patterns = { ".git", ".venv", ".node_modules" }, }, + pickers = { + live_grep = { + additional_args = function(opts) + return { "--hidden" } + end, + }, + }, extensions = { file_browser = { theme = "ivy", @@ -47,7 +54,7 @@ return { end) vim.keymap.set("n", "fg", function() - builtin.live_grep() + builtin.live_grep({ hidden = true }) end, { desc = "Telescope live grep (current file dir)" }) vim.keymap.set("n", "fb", function()