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

14 lines
461 B
VimL

" -----------------------------------------------------------------------------
" - 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)