From 688586eeeca0bd94f9b2ba18049addd1d8c61f93 Mon Sep 17 00:00:00 2001 From: ryanb-dev Date: Sun, 26 Dec 2021 18:20:58 -0600 Subject: [PATCH] Telescope: Remove no_ignore option from find files Prior to this change, searches through large repositories would include files within the .gitignore, resulting in long search results and many useless results. This change results in find_files respecting .gitignore and find_hiddenfiles instead being an exhaustive search over all files within the current directory. --- lua/core/mappings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index d180694..a2d47b8 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -170,8 +170,8 @@ M.telescope = function() local m = plugin_maps.telescope map("n", m.buffers, ":Telescope buffers ") - map("n", m.find_files, ":Telescope find_files no_ignore=true ") - map("n", m.find_hiddenfiles, ":Telescope find_files hidden=true ") + map("n", m.find_files, ":Telescope find_files ") + map("n", m.find_hiddenfiles, ":Telescope find_files no_ignore=true hidden=true ") map("n", m.git_commits, ":Telescope git_commits ") map("n", m.git_status, ":Telescope git_status ") map("n", m.help_tags, ":Telescope help_tags ")