Skip to content

Commit f9c743b

Browse files
committed
Change Rg function to be global
It allows for mappings in vimrc such as: map <leader>a :call Rg(expand("<cword>"))<CR>
1 parent ec87af6 commit f9c743b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vim-ripgrep.vim

+1-1
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)