diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/init.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index d999c09..684642f 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -130,3 +130,11 @@ noremap <C-l> <C-w>l noremap <Leader>p :FzfFiles<CR> noremap <Leader>P :FzfFiles<space> nnoremap <Leader>b :FzfBuffers<CR> + +noremap <Leader>s :Rg<space> +command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --column --line-number --no-heading --color=always '.shellescape(<q-args>), 1, + \ <bang>0 ? fzf#vim#with_preview('up:60%') + \ : fzf#vim#with_preview('right:50%:hidden', '?'), + \ <bang>0) |