diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 21d4bc1..aba2c59 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -62,7 +62,8 @@ Plug 'bling/vim-airline' Plug 'junegunn/vim-peekaboo' " Files Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } -Plug 'junegunn/fzf.vim' +Plug 'ctrlpvim/ctrlp.vim' +Plug 'mhinz/vim-grepper', { 'on': 'Grepper' } " Movement Plug 'easymotion/vim-easymotion' Plug 'haya14busa/incsearch.vim' @@ -83,6 +84,10 @@ call plug#end() " Plugin configuration " -------------------- +let g:ctrlp_map='l' +let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard'] +nnoremap s :CtrlPTag + let g:airline_powerline_fonts=1 nnoremap t :NERDTreeToggle @@ -108,6 +113,13 @@ let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py' let g:ycm_rust_src_path='/data/programming/rustc-1.7.0/src' set completeopt=menu +nnoremap g :Grepper +let g:grepper={ + \ 'tools': ['rg', 'git', 'grep'], + \ 'open': 1, + \ 'jump': 0, + \ } + let g:gutentags_cache_dir = '~/.cache/gutentag' nnoremap o :Tagbar @@ -155,16 +167,6 @@ map * (incsearch-nohl-*) map # (incsearch-nohl-#) map g* (incsearch-nohl-g*) map g# (incsearch-nohl-g#) - -" path for fzf install -set rtp+=/usr/share/vim/vimfiles/ -command! -bang -nargs=* Rg - \ call fzf#vim#grep( - \ 'rg --follow --column --line-number --no-heading --color=always '.shellescape(), 0, - \ 0) -nnoremap g :Rg -nnoremap l :Files -nnoremap s :Tags " Plugged }}} " vim: foldmethod=marker