mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 15:50:04 +08:00
Update highlight
This commit is contained in:
parent
bfd82200f9
commit
70550a6580
@ -44,7 +44,7 @@ let s:grep_timer_id = 0
|
|||||||
|
|
||||||
" @vimlint(EVL103, 1, a:timer)
|
" @vimlint(EVL103, 1, a:timer)
|
||||||
function! s:grep_timer(timer) abort
|
function! s:grep_timer(timer) abort
|
||||||
let cmd = s:get_search_cmd(s:grep_expr)
|
let cmd = s:get_search_cmd(join(split(s:grep_expr), '.*'))
|
||||||
call SpaceVim#logger#info('grep cmd: ' . string(cmd))
|
call SpaceVim#logger#info('grep cmd: ' . string(cmd))
|
||||||
let s:grepid = s:JOB.start(cmd, {
|
let s:grepid = s:JOB.start(cmd, {
|
||||||
\ 'on_stdout' : function('s:grep_stdout'),
|
\ 'on_stdout' : function('s:grep_stdout'),
|
||||||
@ -66,7 +66,7 @@ function! s:flygrep(expr) abort
|
|||||||
catch
|
catch
|
||||||
endtr
|
endtr
|
||||||
hi def link FileNames MoreMsg
|
hi def link FileNames MoreMsg
|
||||||
let s:hi_id = matchadd('FileNames', a:expr, 1)
|
let s:hi_id = matchadd('FileNames', '\c' . a:expr, 1)
|
||||||
let s:grep_expr = a:expr
|
let s:grep_expr = a:expr
|
||||||
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
let s:grep_timer_id = timer_start(500, funcref('s:grep_timer'), {'repeat' : 1})
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user