From cd382dbdf845edafeade858b819c224a19a8b3eb Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 2 Mar 2024 18:16:22 +0000 Subject: [PATCH] fix(vim): add `--no-require-git` to the ferret rg command Now that I have mostly moved over to sapling, rg dose not ignore git files by default. When searching in vim it would search in the node_modules by default. As you can imagine this took for ever. Now we are passing the `--no-require-git` flag so it will ignore any file / dirs that are in any .gitignore by default. --- site-modules/core/files/vim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site-modules/core/files/vim/init.vim b/site-modules/core/files/vim/init.vim index 7d2405a..53cade4 100644 --- a/site-modules/core/files/vim/init.vim +++ b/site-modules/core/files/vim/init.vim @@ -96,3 +96,7 @@ nmap r :IvyTaskfile " ignored from command-t file searches. let g:CommandTWildIgnore="*/node_modules/*,*/vendor/*,*/runtime/*,*/public_html/*,*/pack/*" +let g:FerretExecutableArguments = { + \ 'rg': '--no-require-git --vimgrep --no-heading --no-config --max-columns 4096' + \ } +