Install ripgrep, and use it in vim

This commit is contained in:
Leonora Tindall 2024-08-18 00:34:21 -05:00
parent 23c22e238c
commit 36d22ca23a
2 changed files with 8 additions and 1 deletions

View File

@ -39,4 +39,9 @@ nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l nnoremap <C-l> <C-w>l
" use ripgrep if available
if executable('rg')
set grepprg=rg\ --color=never
let $FZF_DEFAULT_COMMAND = 'rg --files-with-matches --color=never ""'
nnoremap \ :Ag<SPACE>
endif

View File

@ -8,6 +8,7 @@
(gnu packages terminals) (gnu packages terminals)
(gnu packages vim) (gnu packages vim)
(gnu packages version-control) (gnu packages version-control)
(gnu packages rust-apps)
(gnu home services) (gnu home services)
(gnu home services syncthing) (gnu home services syncthing)
(nongnu packages mozilla) (nongnu packages mozilla)
@ -29,6 +30,7 @@
fzf-tab fzf-tab
firefox firefox
git git
ripgrep
)) ))
(services (list (services (list