summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-09 00:34:58 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-09 00:45:50 -0400
commit1b35237130e9c3e5d1bd20cb40f6013c74f0b925 (patch)
tree3dd76417fc9b7b7eb1cbc8e45dde6439b3b9fb64 /vimrc
parent5dd2c27ea32b9794f84e466925b29035eb064ef1 (diff)
downloadconf-1b35237130e9c3e5d1bd20cb40f6013c74f0b925.tar.gz
conf-1b35237130e9c3e5d1bd20cb40f6013c74f0b925.zip
try switching to ripgrep
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index a02fe2c..f494685 100644
--- a/vimrc
+++ b/vimrc
@@ -96,14 +96,14 @@ function! s:fzf_files()
exe "Files"
endif
endfunction
-command! -bang -nargs=* Ag
- \ call fzf#vim#ag(<q-args>,
- \ "--hidden",
+command! -bang -nargs=* Rg
+ \ call fzf#vim#grep('rg --column --line-number --no-heading --color=always --smart-case --no-ignore-messages '.shellescape(<q-args>),
+ \ 1,
\ <bang>0 ? fzf#vim#with_preview(s:ag_opts, 'up:60%')
\ : fzf#vim#with_preview(s:ag_opts, s:horiz_preview_layout, '?'),
\ <bang>0)
nnoremap <silent> t :call <SID>fzf_files()<CR>
-nnoremap <silent> ff :Ag<CR>
+nnoremap <silent> ff :Rg<CR>
nnoremap <silent> fh :Helptags<CR>
nnoremap <silent> ft :Filetypes<CR>
" }}}
@@ -174,7 +174,7 @@ let g:startify_list_order = ['dir', 'bookmarks', 'commands']
let g:startify_files_number = 7
let g:startify_commands = [
\ {'t': ['Open file', 'Files']},
- \ {'ff': ['Grep', 'Ag']},
+ \ {'ff': ['Grep', 'Rg']},
\ {'fh': ['Help', 'Helptags']},
\ ]
let g:startify_change_to_vcs_root = 1