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.
This commit is contained in:
Ade Attwood 2024-03-02 18:16:22 +00:00
parent e17f3f0e97
commit cd382dbdf8

View file

@ -96,3 +96,7 @@ nmap <silent> <Leader>r :IvyTaskfile<cr>
" 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'
\ }