vim-settings/vim/rc/plugins/vim-grepper.rc.vim
ViViDboarder cb1ff9c78a Remove vim-dispatch
This isn't really needed as Gutentags can update tags async and other
build and linting tools like ALE or coc.nvim will do async.
2019-10-21 10:58:25 -07:00

28 lines
745 B
VimL

Plug 'mhinz/vim-grepper'
" Grepper settings and shortcuts
let g:grepper = {
\ 'quickfix': 1,
\ 'open': 1,
\ 'switch': 0,
\ 'jump': 0,
\ 'tools': ['git', 'rg', 'ag', 'ack', 'pt', 'grep'],
\ 'dir': 'repo,cwd'
\ }
nmap gs <plug>(GrepperOperator)
xmap gs <plug>(GrepperOperator)
nmap <leader>* :Grepper -cword -noprompt<cr>
" Override Todo command to use Grepper
command! Todo :Grepper -noprompt -query TODO
" Make some shortands for various grep programs
if executable('rg')
command -nargs=+ Rg :GrepperRg <args>
endif
if executable('ag')
command -nargs=+ Ag :GrepperAg <args>
endif
if executable('ack')
command -nargs=+ Ack :GrepperAck <args>
endif