diff options
author | Arctic Ice Studio <development@arcticicestudio.com> | 2017-02-02 05:59:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 05:59:23 +0100 |
commit | dc6149f4375040f3c7b2a5fea99e15aacce6c807 (patch) | |
tree | c1656b3e1fe5e0336ecdf43d0c36841dce4c99fe /colors | |
parent | dbc5c4d555ad154438d94f750384c1ce3a2a7da8 (diff) | |
parent | 8164a2854d83d07aaddd7b3f5bf948a95777d1d7 (diff) | |
download | nord-vim-dc6149f4375040f3c7b2a5fea99e15aacce6c807.tar.gz |
#13 Italic comments support
Diffstat (limited to 'colors')
-rwxr-xr-x | colors/nord.vim | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/colors/nord.vim b/colors/nord.vim index 276bc91..d461194 100755 --- a/colors/nord.vim +++ b/colors/nord.vim @@ -48,7 +48,16 @@ let s:nord13_term = "3" let s:nord14_term = "2" let s:nord15_term = "5" +if !exists('g:nord_italic_comments') + let g:nord_italic_comments = 0 +endif + function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) + let l:attr = a:attr + if g:nord_italic_comments == 0 && l:attr ==? 'italic' + let l:attr= 'NONE' + endif + if a:guifg != "" exec "hi " . a:group . " guifg=" . a:guifg endif @@ -62,7 +71,7 @@ function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) exec "hi " . a:group . " ctermbg=" . a:ctermbg endif if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr + exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr endif if a:guisp != "" exec "hi " . a:group . " guisp=" . a:guisp @@ -137,7 +146,7 @@ call s:hi("VertSplit", s:nord2_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "NO "+----------------------+ call s:hi("Boolean", s:nord9_gui, "", s:nord9_term, "", "", "") call s:hi("Character", s:nord14_gui, "", s:nord14_term, "", "", "") -call s:hi("Comment", s:nord3_gui, "", s:nord3_term, "", "", "") +call s:hi("Comment", s:nord3_gui, "", s:nord3_term, "", "italic", "") call s:hi("Conditional", s:nord9_gui, "", s:nord9_term, "", "", "") call s:hi("Constant", s:nord4_gui, "", "NONE", "", "", "") call s:hi("Define", s:nord9_gui, "", s:nord9_term, "", "", "") @@ -155,7 +164,7 @@ call s:hi("PreProc", s:nord9_gui, "", s:nord9_term, "", "NONE", "") call s:hi("Repeat", s:nord9_gui, "", s:nord9_term, "", "", "") call s:hi("Special", s:nord4_gui, "", "NONE", "", "", "") call s:hi("SpecialChar", s:nord13_gui, "", s:nord13_term, "", "", "") -call s:hi("SpecialComment", s:nord8_gui, "", s:nord8_term, "", "", "") +call s:hi("SpecialComment", s:nord8_gui, "", s:nord8_term, "", "italic", "") call s:hi("Statement", s:nord9_gui, "", s:nord9_term, "", "", "") call s:hi("StorageClass", s:nord9_gui, "", s:nord9_term, "", "", "") call s:hi("String", s:nord14_gui, "", s:nord14_term, "", "", "") |