From ebf4274c5b8dc0496b283ac577d1eb685f9b8e4f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 8 Mar 2022 10:15:33 +0100 Subject: [PATCH] nvim: Add mapping for finding hidden files While f searches files, now searches for hidden files. Simple addition but can be very useful if you work for example in dotfolder directories or similar. Now I just need to find a way to do the same for live_grep. The functionality is there (live_grep can take the same `{hidden=true}` argument as find_files) but terminal emulators don't distinguish between and so there is no convenient mapping for it yet. --- nvim/.config/nvim/lua/maps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index ad47d62..a1be15f 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -130,6 +130,9 @@ map.n.nore['S'] = [[:lua require 'telescope.builtin'.oldfiles(require 'telescope.themes'.get_ivy())]] -- fuzzy find files in cwd map.n.nore['f'] = [[:lua require 'telescope.builtin'.find_files()]] +-- fuzzy find hidden files in cwd +map.n.nore[''] = + [[:lua require 'telescope.builtin'.find_files({hidden=true})]] -- general full-text search in cwd with rg map.n.nore['F'] = [[:lua require 'telescope.builtin'.live_grep()]]