From 77272a70d3fb1ab439585e68d58c55c80baebf1f Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Tue, 23 Jul 2024 21:54:10 +0200 Subject: [PATCH] feat(telescope): change fa to ignore .git folder Add fl to do what fa used to do (that is, search everything including the .git folder) --- lua/plugins/telescope.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 532ca57..9025424 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -17,8 +17,15 @@ return { keys = { { "", "Telescope find_files", desc = "Find files" }, { "ps", "Telescope live_grep", desc = "Live Grep" }, + -- Search almost everything (except .git folder) { "fa", + function() require("telescope.builtin").find_files({ follow = true, no_ignore = true, hidden = true, file_ignore_patterns = { '.git' } }) end, + desc = "Find all files" + }, + -- Search everything + { + "fl", function() require("telescope.builtin").find_files({ follow = true, no_ignore = true, hidden = true }) end, desc = "Find all files" },