Use bold attribute for current line in make and grep buffers

This commit is contained in:
Maxime Coste 2014-09-08 19:32:46 +01:00
parent 289cb0485e
commit 7fc1564c0c
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ def -shell-params -file-completion \
hook global WinSetOption filetype=grep %{ hook global WinSetOption filetype=grep %{
addhl group grep addhl group grep
addhl -group grep regex "^([^:]+):(\d+):(\d+)?" 1:cyan 2:green 3:green addhl -group grep regex "^([^:]+):(\d+):(\d+)?" 1:cyan 2:green 3:green
addhl -group grep line_option _grep_current_line default,blue addhl -group grep line_option _grep_current_line default+b
hook buffer -group grep-hooks NormalKey <c-m> jump hook buffer -group grep-hooks NormalKey <c-m> jump
} }

View File

@ -17,7 +17,7 @@ def -shell-params make %{ %sh{
addhl -group / group make addhl -group / group make
addhl -group /make regex "^([^:\n]+):(\d+):(?:(\d+):)?\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow addhl -group /make regex "^([^:\n]+):(\d+):(?:(\d+):)?\h+(?:((?:fatal )?error)|(warning)|(note)|(required from(?: here)?))?.*?$" 1:cyan 2:green 3:green 4:red 5:yellow 6:blue 7:yellow
addhl -group /make line_option _make_current_error_line default,rgb:606060 addhl -group /make line_option _make_current_error_line default+b
hook global WinSetOption filetype=make %{ hook global WinSetOption filetype=make %{
addhl ref make addhl ref make