Skip to content

Commit

Permalink
Merge pull request #58 from dylnmc/fix-statusline
Browse files Browse the repository at this point in the history
Add statusline uniform background color configuration
  • Loading branch information
arcticicestudio authored Oct 1, 2017
2 parents 958322d + f62b96a commit 9305680
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Nord Vim is a 16 colorspace theme build to run in GUI- and terminal mode with su
- [Activation](#activation)
- [Configuration](#configuration)
- [Italic comments](#italic-comments)
- [Uniform status lines](#uniform-status-lines)
- [Comment contrast](#comment-contrast)
- [Uniform diff background](#uniform-diff-background)
- [Plugin Support](#plugin-support)
Expand Down Expand Up @@ -117,6 +118,20 @@ It can be enabled by setting the `g:nord_italic_comments` variable to `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
**This option should only be enabled if your terminal emulator supports 24bit true color (16 million colors)!**

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/scrot-config-uniform-status-lines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions colors/nord.vim
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ if !exists("g:nord_italic_comments")
let g:nord_italic_comments = 0
endif

if !exists('g:nord_uniform_status_lines')
let g:nord_uniform_status_lines = 0

if !exists("g:nord_comment_brightness")
let g:nord_comment_brightness = 0
endif
Expand Down Expand Up @@ -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("MoreMsg", s:nord4_gui, "", "", "", "", "")
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", "")
call s:hi("StatusLineNC", s:nord4_gui, s:nord0_gui, s:nord8_term, "NONE", "NONE", "")
if g:nord_uniform_status_lines == 0
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("WildMenu", s:nord8_gui, s:nord3_gui, s:nord8_term, s:nord3_term, "", "")

Expand Down

0 comments on commit 9305680

Please sign in to comment.