Skip to content

Commit

Permalink
Allow searching through hidden directories except .git
Browse files Browse the repository at this point in the history
  • Loading branch information
rbellido-ut committed Mar 21, 2024
1 parent 790f54f commit b54cd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/keys/mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ command! -bang -nargs=* Rg

" Ripgrep advanced
function! RipgrepFzf(query, fullscreen)
let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case %s || true'
let command_fmt = "rg --hidden --g '!.git' --column --line-number --no-heading --color=always --smart-case %s || true"
let initial_command = printf(command_fmt, shellescape(a:query))
let reload_command = printf(command_fmt, '{q}')
let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]}
Expand Down

0 comments on commit b54cd9b

Please sign in to comment.