From 4b51f8d6cdfd4c700330325b1dcb6519c9f868c9 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sat, 1 Oct 2022 17:57:53 +0200 Subject: [PATCH] [neovim] Show hidden files (except .git) when using find_files on telescope --- .config/nvim/lua/user/telescope.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/lua/user/telescope.lua b/.config/nvim/lua/user/telescope.lua index 4ce02b6..ac27114 100644 --- a/.config/nvim/lua/user/telescope.lua +++ b/.config/nvim/lua/user/telescope.lua @@ -22,6 +22,9 @@ telescope.setup({ }, }, pickers = { + find_files = { + find_command = { "fd", "--hidden", "--type=file", "--exclude=.git" }, + }, live_grep = { additional_args = function() return { "--hidden", "-g", "!.git/" }