|
@@ -6,6 +6,7 @@ Plug 'tpope/vim-fugitive'
|
|
|
Plug 'tpope/vim-surround'
|
|
|
Plug 'bling/vim-airline'
|
|
|
Plug 'mhinz/vim-signify'
|
|
|
+Plug 'mhinz/vim-grepper'
|
|
|
Plug 'sjl/gundo.vim'
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
|
|
|
@@ -47,6 +48,7 @@ if executable('ag')
|
|
|
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
|
|
" we cd first into the dir so ag will use .agignore correctly
|
|
|
let g:ctrlp_user_command = 'cd %s && ag --nocolor --hidden -g ""'
|
|
|
+ let g:grepper = { 'tools': ['ag', 'git', 'grep'] }
|
|
|
endif
|
|
|
|
|
|
" ------ settings ------
|
|
@@ -110,6 +112,9 @@ nnoremap <C-O> :CtrlPBuffer<cr>
|
|
|
nnoremap <C-T>h :tabprev<cr>
|
|
|
nnoremap <C-T>l :tabnext<cr>
|
|
|
|
|
|
+" grepper
|
|
|
+nnoremap <Leader>g :Grepper<CR>
|
|
|
+
|
|
|
" ------ nvim specific ------
|
|
|
if has('nvim')
|
|
|
let g:airline#themes#dark#palette.terminal = copy(g:airline#themes#dark#palette.insert)
|