dotfiles/symlinks/config/nvim/after/plugin/grepper.vim

14 lines
461 B
VimL
Raw Normal View History

2021-02-23 11:27:32 +00:00
" -----------------------------------------------------------------------------
" - vim-grepper configuration -
" -----------------------------------------------------------------------------
let g:grepper = {}
let g:grepper.tools = ['rg', 'git', 'grep']
" Search for the current word (similar to *)
nnoremap <Leader>* :Grepper -cword -noprompt<CR>
" Search for the current selection
nmap gs <Plug>(GrepperOperator)
xmap gs <Plug>(GrepperOperator)