Fix inconsistent line number foreground color in GUI mode

In term mode the number uses nord4, but in GUI mode nord3 was used
instead. This was not intended and has been changed to match the term
mode style.

GH-100
This commit is contained in:
Arctic Ice Studio 2018-06-23 08:01:51 +02:00
parent 2508195ad7
commit 50ec737b8f
4 changed files with 8 additions and 4 deletions

View file

@ -24,6 +24,7 @@ Nord Vim is a 16 colorspace theme build to run in GUI- and terminal mode with su
- [Uniform Status Lines](#uniform-status-lines) - [Uniform Status Lines](#uniform-status-lines)
- [Comment Contrast](#comment-contrast) - [Comment Contrast](#comment-contrast)
- [Uniform diff Background](#uniform-diff-background) - [Uniform diff Background](#uniform-diff-background)
- [Line number background](#line-number-background)
- [Plugin Support](#plugin-support) - [Plugin Support](#plugin-support)
- [UI Plugins](#ui-plugins) - [UI Plugins](#ui-plugins)
- [Language Plugins](#language-plugins) - [Language Plugins](#language-plugins)
@ -230,14 +231,17 @@ let g:nord_uniform_diff_background = 1
<p align="center"><strong>Colorful backgrounds (default)</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-diff-default.png"/><br><strong>Uniform diff background</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-diff.png"/> <p align="center"><strong>Colorful backgrounds (default)</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-diff-default.png"/><br><strong>Uniform diff background</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-diff.png"/>
</p> </p>
### Highlighting the current line number ### Line number background
Enables background for line number of the current line the same with text background of the current line. Enables background for the line number of the current line.
```vim ```vim
let g:nord_cursor_line_number_coloring = 1 let g:nord_cursor_line_number_background = 1
``` ```
<p align="center"><strong>No background (default)</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-cursor-line-number-background-default.png"/><br><strong>Enabled background</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-cursor-line-number-background.png"/>
</p>
## Plugin Support ## Plugin Support
Nord Vim provides support for many third-party language- and UI plugins. Nord Vim provides support for many third-party language- and UI plugins.

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View file

@ -185,7 +185,7 @@ endif
"+--- Gutter ---+ "+--- Gutter ---+
call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "") call s:hi("CursorColumn", "", s:nord1_gui, "NONE", s:nord1_term, "", "")
if g:nord_cursor_line_number_background == 0 if g:nord_cursor_line_number_background == 0
call s:hi("CursorLineNr", s:nord3_gui, s:nord0_gui, "NONE", "", "", "") call s:hi("CursorLineNr", s:nord4_gui, s:nord0_gui, "NONE", "", "", "")
else else
call s:hi("CursorLineNr", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "", "") call s:hi("CursorLineNr", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "", "")
endif endif