aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/health.vim
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2016-06-16 17:01:47 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-08-21 21:25:33 -0400
commit2cc523c3afd3c98e80499409182ca96708d996f4 (patch)
treefa422a0b8b4522f605f296ff8adf1c4efc54072c /runtime/syntax/health.vim
parenta26d52ea328e64ab08dae369e5a7c551bb05abf7 (diff)
downloadrneovim-2cc523c3afd3c98e80499409182ca96708d996f4.tar.gz
rneovim-2cc523c3afd3c98e80499409182ca96708d996f4.tar.bz2
rneovim-2cc523c3afd3c98e80499409182ca96708d996f4.zip
CheckHealth
- Use execute() instead of redir - Fixed logic on suboptimal pyenv/virtualenv checks. - Move system calls from strings to lists. Fixes #5218 - Add highlighting - Automatically discover health checkers - Add tests Helped-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Helped-by: Tommy Allen <tommy@esdf.io> Closes #4932
Diffstat (limited to 'runtime/syntax/health.vim')
-rw-r--r--runtime/syntax/health.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/syntax/health.vim b/runtime/syntax/health.vim
new file mode 100644
index 0000000000..1e8e522b4d
--- /dev/null
+++ b/runtime/syntax/health.vim
@@ -0,0 +1,20 @@
+if exists("b:current_syntax")
+ finish
+endif
+
+syntax keyword healthError ERROR
+highlight link healthError Error
+
+syntax keyword healthWarning WARNING
+highlight link healthWarning Todo
+
+syntax keyword healthInfo INFO
+highlight link healthInfo Identifier
+
+syntax keyword healthSuccess SUCCESS
+highlight link healthSuccess Function
+
+syntax keyword healthSuggestion SUGGESTION
+highlight link healthSuggestion String
+
+let b:current_syntax = "health"