From 2c702057adfeefc454b25c9b8f4227a53aad0c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Tue, 16 May 2023 11:20:05 +0200 Subject: [PATCH] fix: show hidden files with live grep --- lua/plugins/telescope.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 47e1cbd..03a1890 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -31,7 +31,30 @@ return { }, pickers = { find_files = { - find_command = { 'rg', '-S', '--no-ignore-vcs', '--hidden', '--files', '-g', '!.git' }, + find_command = { + 'rg', + '-S', + '--no-ignore-vcs', + '--hidden', + '--files', + '-g', + '!.git', + }, + }, + live_grep = { + grep_command = { + 'rg', + '--no-ignore-vcs', + '--hidden', + '--color=never', + '--no-heading', + '--with-filename', + '--line-number', + '--column', + '--smart-case', + '-g', + '!.git', + }, }, }, }