From ae834705c2d33867b877927e8a38a47592a2f94d Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Tue, 12 Mar 2019 23:11:28 +0100 Subject: [PATCH] Modify the structure of the comments The highlighting of the synta groups has been split in two. There are now: - the 'User Interface', - and the 'Syntax'. --- colors/odyssey.vim | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 360347b..61f9524 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -15,7 +15,8 @@ " Maintainer: Ludovic Koenig " License: MIT " Release: 0.2.0 -" Initialisation {{{ +" +" Prelude {{{ if !has('gui_running') if !(has('termguicolors') && &termguicolors) && &t_Co != 256 @@ -36,7 +37,7 @@ endif let g:colors_name = 'odyssey' " }}} -" Color Utilities {{{ +" Color Helpers {{{ function! s:hsv2rgb(hue, saturation, value) let l:s = a:saturation / 100.0 @@ -151,7 +152,7 @@ let s:attributes['bold'] = { 'cterm': 'bold', 'gui': 'bold' } let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' } " }}} -" Highlight Utilities {{{ +" Highlight Helpers {{{ function! s:HL(group, bg, fg, attr) let l:hi = 'highlight ' . a:group . ' ' @@ -177,11 +178,7 @@ function! s:HL(group, bg, fg, attr) endfunction " }}} -" Default Highlights {{{ -" -" This section links the different default highlight groups with their -" associated colors. They appear in the same order than when the highlight -" command is used. +" User Interface {{{ call s:HL( 'SpecialKey', 'background', 'warning', 'none') call s:HL( 'EndOfBuffer', 'background', 'linenumber', 'none') @@ -232,6 +229,10 @@ call s:HL( 'lCursor', 'background', 'foreground', 'reverse') call s:HL( 'MatchParen', 'background', 'warning', 'underline') call s:HL( 'ToolbarLine', 'linenumber', 'linenumber', 'none') call s:HL( 'ToolbarButton', 'background', 'linenumber', 'reverse') + +" }}} +" Syntax {{{ + call s:HL( 'Comment', 'background', 'linenumber', 'none') call s:HL( 'Constant', 'background', 'constant', 'none') call s:HL( 'Special', 'background', 'warning', 'none')