mirror of
https://github.com/nordtheme/vim.git
synced 2026-09-10 07:36:23 -04:00
Merge pull request #58 from dylnmc/fix-statusline
Add statusline uniform background color configuration
This commit is contained in:
commit
9305680291
15
README.md
15
README.md
|
|
@ -20,6 +20,7 @@ Nord Vim is a 16 colorspace theme build to run in GUI- and terminal mode with su
|
||||||
- [Activation](#activation)
|
- [Activation](#activation)
|
||||||
- [Configuration](#configuration)
|
- [Configuration](#configuration)
|
||||||
- [Italic comments](#italic-comments)
|
- [Italic comments](#italic-comments)
|
||||||
|
- [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)
|
||||||
- [Plugin Support](#plugin-support)
|
- [Plugin Support](#plugin-support)
|
||||||
|
|
@ -117,6 +118,20 @@ It can be enabled by setting the `g:nord_italic_comments` variable to `1`.
|
||||||
let g:nord_italic_comments = 1
|
let g:nord_italic_comments = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Uniform status lines
|
||||||
|
|
||||||
|
Enables uniform activate- and inactive status lines using `nord3` as background.
|
||||||
|
|
||||||
|
By default, Nord Vim uses a slightly brighter background for the current split buffer. This is designed to draw attention to the currently active buffer without being distracting.
|
||||||
|
|
||||||
|
If the user desires the backgrounds to be a uniform color, `g:nord_uniform_status_lines` can be set to `1`:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let g:nord_uniform_status_lines = 1
|
||||||
|
```
|
||||||
|
|
||||||
|
<align="center"><strong>Default status lines</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-status-lines-default.png"/><br><strong>Uniform status lines</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-vim/develop/assets/scrot-config-uniform-status-lines.png"/></p>
|
||||||
|
|
||||||
### Comment contrast
|
### Comment contrast
|
||||||
**This option should only be enabled if your terminal emulator supports 24bit true color (16 million colors)!**
|
**This option should only be enabled if your terminal emulator supports 24bit true color (16 million colors)!**
|
||||||
|
|
||||||
|
|
|
||||||
BIN
assets/scrot-config-uniform-status-lines-default.png
Executable file
BIN
assets/scrot-config-uniform-status-lines-default.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
BIN
assets/scrot-config-uniform-status-lines.png
Executable file
BIN
assets/scrot-config-uniform-status-lines.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -76,6 +76,9 @@ if !exists("g:nord_italic_comments")
|
||||||
let g:nord_italic_comments = 0
|
let g:nord_italic_comments = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !exists('g:nord_uniform_status_lines')
|
||||||
|
let g:nord_uniform_status_lines = 0
|
||||||
|
|
||||||
if !exists("g:nord_comment_brightness")
|
if !exists("g:nord_comment_brightness")
|
||||||
let g:nord_comment_brightness = 0
|
let g:nord_comment_brightness = 0
|
||||||
endif
|
endif
|
||||||
|
|
@ -160,8 +163,13 @@ call s:hi("ErrorMsg", s:nord4_gui, s:nord11_gui, "NONE", s:nord11_term, "", "")
|
||||||
call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "")
|
call s:hi("ModeMsg", s:nord4_gui, "", "", "", "", "")
|
||||||
call s:hi("MoreMsg", s:nord4_gui, "", "", "", "", "")
|
call s:hi("MoreMsg", s:nord4_gui, "", "", "", "", "")
|
||||||
call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "")
|
call s:hi("Question", s:nord4_gui, "", "NONE", "", "", "")
|
||||||
call s:hi("StatusLine", s:nord4_gui, s:nord0_gui, s:nord8_term, s:nord1_term, "NONE", "")
|
if g:nord_uniform_status_lines == 0
|
||||||
call s:hi("StatusLineNC", s:nord4_gui, s:nord0_gui, s:nord8_term, "NONE", "NONE", "")
|
call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
|
||||||
|
call s:hi("StatusLineNC", s:nord4_gui, s:nord1_gui, "NONE", s:nord1_term, "NONE", "")
|
||||||
|
else
|
||||||
|
call s:hi("StatusLine", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "NONE", "")
|
||||||
|
call s:hi("StatusLineNC", s:nord4_gui, s:nord3_gui, "NONE", s:nord3_term, "NONE", "")
|
||||||
|
endif
|
||||||
call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "")
|
call s:hi("WarningMsg", s:nord0_gui, s:nord13_gui, s:nord1_term, s:nord13_term, "", "")
|
||||||
call s:hi("WildMenu", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "")
|
call s:hi("WildMenu", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue