mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
Fix rg support
This commit is contained in:
parent
ba6f36edfc
commit
b30a3bb7d6
@ -28,6 +28,8 @@ endfunction
|
||||
function! s:get_search_cmd(exe, expr) abort
|
||||
if a:exe == 'grep'
|
||||
return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.']
|
||||
elseif a:exe == 'rg'
|
||||
return ['rg', '-n', a:expr]
|
||||
else
|
||||
return [a:exe, a:expr]
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user