aboutsummaryrefslogtreecommitdiffstats
path: root/colors
diff options
context:
space:
mode:
authorGravatar Arctic Ice Studio <development@arcticicestudio.com>2018-06-23 08:36:48 +0200
committerGravatar GitHub <noreply@github.com>2018-06-23 08:36:48 +0200
commit035e36de3a55a593377246f02c045802b893c817 (patch)
tree4aa4bd4a2a1e0656656bfb591baa54c702aa59c3 /colors
parent65c559eea8bd85f917e0e93071fba7fdd3765225 (diff)
parent50ec737b8fda0fd0a679738099c34037e8149704 (diff)
downloadnord-vim-035e36de3a55a593377246f02c045802b893c817.tar.gz
Merge pull request #100 from andrepolischuk/cursor-line-nr-background
Match CursorLineNr background to CursorLine
Diffstat (limited to 'colors')
-rwxr-xr-xcolors/nord.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/colors/nord.vim b/colors/nord.vim
index c2b6ce3..5558fc0 100755
--- a/colors/nord.vim
+++ b/colors/nord.vim
@@ -103,6 +103,10 @@ if !exists("g:nord_uniform_diff_background")
let g:nord_uniform_diff_background = 0
endif
+if !exists("g:nord_cursor_line_number_background")
+ let g:nord_cursor_line_number_background = 0
+endif
+
function! s:hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
if a:guifg != ""
exec "hi " . a:group . " guifg=" . a:guifg
@@ -181,7 +185,11 @@ endif
"+--- Gutter ---+
call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "")
-call s:hi("CursorLineNr", s:nord3_gui, s:nord0_gui, "NONE", "", "", "")
+if g:nord_cursor_line_number_background == 0
+ call s:hi("CursorLineNr", s:nord4_gui, s:nord0_gui, "NONE", "", "", "")
+else
+ call s:hi("CursorLineNr", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "", "")
+endif
call s:hi("Folded", s:nord3_gui, s:nord1_gui, s:nord3_term, s:nord1_term, "bold", "")
call s:hi("FoldColumn", s:nord3_gui, s:nord0_gui, s:nord3_term, "NONE", "", "")
call s:hi("SignColumn", s:nord1_gui, s:nord0_gui, s:nord1_term, "NONE", "", "")