mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 09:16:27 +00:00
cb1ff9c78a
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.
28 lines
745 B
VimL
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
|