1
0
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:
wsdjeg 2017-07-02 21:45:17 +08:00
parent ba6f36edfc
commit b30a3bb7d6

View File

@ -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