From d1b8699983b5cc7960eb87aba1bb630070902933 Mon Sep 17 00:00:00 2001 From: Iron-E Date: Thu, 17 Dec 2020 14:18:02 -0500 Subject: [PATCH] ref(colors): extract help groups There were help syntax highlights scattered around. THis moves them to one, dedicated spot. Additionally, there were some incorrect settings for markdown help blocks, and they were corrected. --- colors/highlite.vim | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/colors/highlite.vim b/colors/highlite.vim index d304568..7f8c822 100644 --- a/colors/highlite.vim +++ b/colors/highlite.vim @@ -293,12 +293,10 @@ local highlight_groups = { --[[ 4.1.7. Help Syntax]] Underlined = {fg=turqoise, style='underline'}, Ignore = {fg=gray}, - Error = {fg=white, bg=red_dark, style='bold'}, - Todo = {fg=yellow, style={'bold', 'underline'}}, - helpHyperTextJump = 'Underlined', - helpSpecial = 'Function', - Hint = {fg=black, bg=magenta, style='bold'}, - Info = function(self) return {fg=self.Hint.fg, bg=pink_light, style=self.Hint.style} end, + Error = {fg=white, bg=red_dark, style='bold'}, + Todo = {fg=yellow, style={'bold', 'underline'}}, + Hint = {fg=black, bg=magenta, style='bold'}, + Info = function(self) return {fg=self.Hint.fg, bg=pink_light, style=self.Hint.style} end, Warning = function(self) return {fg=self.Hint.fg, bg=orange, style=self.Hint.style} end, --[[ 4.2... Editor UI ]] @@ -550,9 +548,9 @@ local highlight_groups = { mkdCodeEnd = 'mkdCodeStart', mkdHeading = 'Delimiter', mkdItalic = 'mkdBold', - mkdLineBreak = NONE, + mkdLineBreak = 'NonText', mkdListItem = 'Special', - mkdRule = 'Underlined', + mkdRule = function(self) return {fg=self.Ignore.fg, style={'underline', color=self.Delimiter.fg}} end, --[[ 4.3.20. Python ]] pythonBrackets = 'Delimiter', @@ -618,10 +616,6 @@ local highlight_groups = { tomlTable = 'Structure', --[[ 4.3.27. VimScript ]] - helpSpecial = 'Special', - helpHeader = 'Label', - helpHeadline = 'Title', - helpSectionDelim = 'Delimiter', vimCmdSep = 'Delimiter', vimFunction = 'Function', vimFgBgAttrib = 'Constant', @@ -712,6 +706,14 @@ local highlight_groups = { coqVernacCmd = 'Statement', coqVernacPunctuation = 'coqTermPunctuation', + --[[ 4.3.37 Help ]] + helpSpecial = 'Special', + helpHeader = 'Label', + helpHeadline = 'Title', + helpSectionDelim = 'Delimiter', + helpHyperTextJump = 'Underlined', + helpSpecial = 'Function', + --[[ 4.4. Plugins Everything in this section is OPTIONAL. Feel free to remove everything here if you don't want to define it, or add more if there's something