mirror of
https://github.com/nordtheme/vim.git
synced 2026-09-10 07:36:23 -04:00
Merge pull request #100 from andrepolischuk/cursor-line-nr-background
Match CursorLineNr background to CursorLine
This commit is contained in:
commit
035e36de3a
12
README.md
12
README.md
|
|
@ -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)
|
||||
- [Comment Contrast](#comment-contrast)
|
||||
- [Uniform diff Background](#uniform-diff-background)
|
||||
- [Line number background](#line-number-background)
|
||||
- [Plugin Support](#plugin-support)
|
||||
- [UI Plugins](#ui-plugins)
|
||||
- [Language Plugins](#language-plugins)
|
||||
|
|
@ -230,6 +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>
|
||||
|
||||
### Line number background
|
||||
|
||||
Enables background for the line number of the current line.
|
||||
|
||||
```vim
|
||||
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
|
||||
|
||||
Nord Vim provides support for many third-party language- and UI plugins.
|
||||
|
|
|
|||
BIN
assets/scrot-config-cursor-line-number-background-default.png
Normal file
BIN
assets/scrot-config-cursor-line-number-background-default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
BIN
assets/scrot-config-cursor-line-number-background.png
Normal file
BIN
assets/scrot-config-cursor-line-number-background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
|
|
@ -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", "", "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue