mirror of
https://github.com/jremmen/vim-ripgrep.git
synced 2025-12-26 19:45:29 +08:00
Change Rg function to be global
It allows for mappings in vimrc such as:
map <leader>a :call Rg(expand("<cword>"))<CR>
This commit is contained in:
parent
ec87af6b69
commit
f9c743becb
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ fun! g:RgVisual() range
|
|||
call s:RgGrepContext(function('s:RgSearch'), '"' . s:RgGetVisualSelection() . '"')
|
||||
endfun
|
||||
|
||||
fun! s:Rg(txt)
|
||||
fun! g:Rg(txt)
|
||||
call s:RgGrepContext(function('s:RgSearch'), s:RgSearchTerm(a:txt))
|
||||
endfun
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue