parent
ecbbf94408
commit
9eaa594844
@ -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='<Leader>l'
|
||||
let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard']
|
||||
nnoremap <Leader>s :CtrlPTag<CR>
|
||||
|
||||
let g:airline_powerline_fonts=1
|
||||
|
||||
nnoremap <Leader>t :NERDTreeToggle<CR><CR>
|
||||
@ -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 <Leader>g :Grepper<CR>
|
||||
let g:grepper={
|
||||
\ 'tools': ['rg', 'git', 'grep'],
|
||||
\ 'open': 1,
|
||||
\ 'jump': 0,
|
||||
\ }
|
||||
|
||||
let g:gutentags_cache_dir = '~/.cache/gutentag'
|
||||
|
||||
nnoremap <Leader>o :Tagbar<CR>
|
||||
@ -155,16 +167,6 @@ map * <Plug>(incsearch-nohl-*)
|
||||
map # <Plug>(incsearch-nohl-#)
|
||||
map g* <Plug>(incsearch-nohl-g*)
|
||||
map g# <Plug>(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(<q-args>), 0,
|
||||
\ <bang>0)
|
||||
nnoremap <Leader>g :Rg<CR>
|
||||
nnoremap <Leader>l :Files<CR>
|
||||
nnoremap <Leader>s :Tags<CR>
|
||||
" Plugged }}}
|
||||
|
||||
" vim: foldmethod=marker
|
||||
|
Loading…
Reference in New Issue
Block a user