From 0c8dfce05f860b7c86d1708da8daa52b024bb19b Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 21 Jan 2018 23:48:21 +0800 Subject: [PATCH] Display filename with match --- autoload/SpaceVim/plugins/flygrep.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index 06f386aed..593a7ffd0 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -109,9 +109,9 @@ function! s:get_search_cmd(exe, expr) abort return ['grep', '-inHR', '--exclude-dir', '.git', a:expr, '.'] elseif a:exe ==# 'rg' 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 - return ['rg', '-n', '-i', a:expr] + return ['rg', '-H', '-n', '-i', a:expr] endif else return [a:exe, a:expr]