Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
ref(colors): extract help groups
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Iron-E committed Dec 17, 2020
1 parent aabed24 commit d1b8699
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions colors/highlite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1b8699

Please sign in to comment.