mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-22 08:45:42 +08:00
Display filename with match
This commit is contained in:
parent
fa9214cd49
commit
0c8dfce05f
@ -109,9 +109,9 @@ function! s:get_search_cmd(exe, expr) abort
|
|||||||
return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.']
|
return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.']
|
||||||
elseif a:exe ==# 'rg'
|
elseif a:exe ==# 'rg'
|
||||||
if !empty(s:grep_files) && type(s:grep_files) == 3
|
if !empty(s:grep_files) && type(s:grep_files) == 3
|
||||||
return ['rg', '-n', '-i', a:expr] + s:grep_files
|
return ['rg', '-H', '-n', '-i', a:expr] + s:grep_files
|
||||||
else
|
else
|
||||||
return ['rg', '-n', '-i', a:expr]
|
return ['rg', '-H', '-n', '-i', a:expr]
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
return [a:exe, a:expr]
|
return [a:exe, a:expr]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user