From a0b9e1369722c193cad07f420b834f19b9a32954 Mon Sep 17 00:00:00 2001 From: AlvaroMlgs Date: Mon, 25 Mar 2019 11:05:03 +0200 Subject: [PATCH] Customizable hlsearch highlight color (similar to hls_cursor setting) --- colors/gruvbox.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/colors/gruvbox.vim b/colors/gruvbox.vim index a0c2c0ba..03dbd550 100644 --- a/colors/gruvbox.vim +++ b/colors/gruvbox.vim @@ -305,6 +305,11 @@ if exists('g:gruvbox_hls_cursor') let s:hls_cursor = get(s:gb, g:gruvbox_hls_cursor) endif +let s:hls_highlight = s:orange +if exists('g:gruvbox_hls_highlight') + let s:hls_highlight = get(s:gb, g:gruvbox_hls_highlight) +endif + let s:number_column = s:none if exists('g:gruvbox_number_column') let s:number_column = get(s:gb, g:gruvbox_number_column) @@ -506,7 +511,7 @@ hi! link SpecialKey GruvboxBg2 call s:HL('Visual', s:none, s:bg3, s:invert_selection) hi! link VisualNOS Visual -call s:HL('Search', s:yellow, s:bg0, s:inverse) +call s:HL('Search', s:hls_highlight, s:bg0, s:inverse) call s:HL('IncSearch', s:hls_cursor, s:bg0, s:inverse) call s:HL('Underlined', s:blue, s:none, s:underline)