From 4bd14fb0ec396dbb677e9dd60e31482fc129abe2 Mon Sep 17 00:00:00 2001 From: Louis Varin Date: Fri, 24 Nov 2023 09:53:38 -0500 Subject: [PATCH] fix: include hidden files when searching with rg --- flakes/nvim/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flakes/nvim/init.lua b/flakes/nvim/init.lua index d246f8d..814e002 100644 --- a/flakes/nvim/init.lua +++ b/flakes/nvim/init.lua @@ -1072,6 +1072,12 @@ local function configure_fzf() args = '--number', }, }, + files = { + rg_opts = "--color=never --files --hidden --follow -g '!.git'", + }, + grep = { + rg_opts = "--hidden -g '!.git' --column --line-number --no-heading --color=always --smart-case --max-columns=4096 -e", + }, }) end