Skip to content

Commit 76880cb

Browse files
committed
Chenge Rg function to be global
It allows for mappings in vimrc such as: map <leader>a :call Rg()<CR>
1 parent ec87af6 commit 76880cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/vim-ripgrep.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fun! g:RgVisual() range
2828
call s:RgGrepContext(function('s:RgSearch'), '"' . s:RgGetVisualSelection() . '"')
2929
endfun
3030

31-
fun! s:Rg(txt)
31+
fun! g:Rg(txt)
3232
call s:RgGrepContext(function('s:RgSearch'), s:RgSearchTerm(a:txt))
3333
endfun
3434

0 commit comments

Comments
 (0)