aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/health.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/autoload/health.vim b/runtime/autoload/health.vim
index 38e3804bf4..a63eebae13 100644
--- a/runtime/autoload/health.vim
+++ b/runtime/autoload/health.vim
@@ -2,29 +2,32 @@ function! s:enhance_syntax() abort
syntax case match
syntax keyword healthError ERROR
+ \ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthError Error
syntax keyword healthWarning WARNING
+ \ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthWarning WarningMsg
syntax keyword healthInfo INFO
+ \ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthInfo ModeMsg
syntax keyword healthSuccess SUCCESS
+ \ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthSuccess ModeMsg
syntax keyword healthSuggestion SUGGESTIONS
+ \ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthSuggestion String
syntax match healthHelp "|.\{-}|" contains=healthBar
+ \ containedin=markdownCodeBlock,mkdListItemLine
syntax match healthBar "|" contained conceal
highlight link healthHelp Identifier
" We do not care about markdown syntax errors in :CheckHealth output.
highlight! link markdownError Normal
-
- " We don't need code blocks.
- silent! syntax clear markdownCodeBlock
endfunction
" Runs the specified healthchecks.
@@ -68,6 +71,8 @@ function! health#check(plugin_names) abort
endfor
endif
+ " needed for plasticboy/vim-markdown, because it uses fdm=expr
+ normal! zR
setlocal nomodified
redraw|echo ''
endfunction