mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:10:05 +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
|
function! s:get_search_cmd(exe, expr) abort
|
||||||
if a:exe == 'grep'
|
if a:exe == 'grep'
|
||||||
return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.']
|
return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.']
|
||||||
|
elseif a:exe == 'rg'
|
||||||
|
return ['rg', '-n', a:expr]
|
||||||
else
|
else
|
||||||
return [a:exe, a:expr]
|
return [a:exe, a:expr]
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user