aboutsummaryrefslogtreecommitdiffstats
path: root/colors/nord.vim
diff options
context:
space:
mode:
authorGravatar Sheldon Johnson <shayolden@hotmail.com>2017-09-23 19:32:43 +1000
committerGravatar Arctic Ice Studio <development@arcticicestudio.com>2017-09-23 11:32:43 +0200
commite18ab4e893f58a4a94d6df927884d8314e0f42d3 (patch)
tree211083a2d4861a16eab09bfa30f6662fc5480e53 /colors/nord.vim
parent063620f027d075141eb14f62cddfab60ad32f9d9 (diff)
downloadnord-vim-e18ab4e893f58a4a94d6df927884d8314e0f42d3.tar.gz
Implement comment brightness configuration feature
GH-48
Diffstat (limited to 'colors/nord.vim')
-rwxr-xr-xcolors/nord.vim32
1 files changed, 30 insertions, 2 deletions
diff --git a/colors/nord.vim b/colors/nord.vim
index 25e434c..c89f0b5 100755
--- a/colors/nord.vim
+++ b/colors/nord.vim
@@ -48,10 +48,38 @@ let s:nord13_term = "3"
let s:nord14_term = "2"
let s:nord15_term = "5"
-if !exists('g:nord_italic_comments')
+let s:nord3_gui_brightened = [
+ \ s:nord3_gui,
+ \ "#4e586d",
+ \ "#505b70",
+ \ "#525d73",
+ \ "#556076",
+ \ "#576279",
+ \ "#59647c",
+ \ "#5b677f",
+ \ "#5d6982",
+ \ "#5f6c85",
+ \ "#616e88",
+ \ "#63718b",
+ \ "#66738e",
+ \ "#687591",
+ \ "#6a7894",
+ \ "#6d7a96",
+ \ "#6f7d98",
+ \ "#72809a",
+ \ "#75829c",
+ \ "#78859e",
+ \ "#7b88a1",
+\ ]
+
+if !exists("g:nord_italic_comments")
let g:nord_italic_comments = 0
endif
+if !exists("g:nord_comment_brightness")
+ let g:nord_comment_brightness = 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'
@@ -150,7 +178,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, "", "italic", "")
+call s:hi("Comment", s:nord3_gui_brightened[g:nord_comment_brightness], "", 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, "", "", "")