浏览代码

Improve visibilty of errors in the source with YouCompleteMe.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Andreas Schneider 11 年之前
父节点
当前提交
aa4c37a849
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      colors/gruvbox.vim

+ 10 - 2
colors/gruvbox.vim

@@ -49,6 +49,10 @@ if !exists('g:gruvbox_improved_strings')
 	let g:gruvbox_improved_strings=0
 endif
 
+if !exists('g:gruvbox_improved_warnings')
+	let g:gruvbox_improved_warnings=0
+endif
+
 if !exists('g:gruvbox_termcolors')
 	let g:gruvbox_termcolors=256
 endif
@@ -549,8 +553,12 @@ call s:HL('DiffText',   'dark0', 'yellow')
 " Spelling: {{{
 
 if has("spell")
-	" Not capitalised word
-	call s:HL('SpellCap',   'none', 'none', 'undercurl', 'red')
+	" Not capitalised word, or compile warnings
+	if g:gruvbox_improved_warnings == 0
+		call s:HL('SpellCap',   'none', 'none', 'undercurl', 'red')
+	else
+		call s:HL('SpellCap',   'green', 'none', 'italic,bold')
+	endif
 	" Not recognized word
 	call s:HL('SpellBad',   'none', 'none', 'undercurl', 'blue')
 	" Wrong spelling for selected region