aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/airline/themes/nord.vim
diff options
context:
space:
mode:
authorGravatar Jose M. Murinello <jm.murinello@gmail.com>2019-07-17 03:17:51 +0900
committerGravatar Arctic Ice Studio <development@arcticicestudio.com>2019-07-16 20:17:51 +0200
commit73b3d340a735a2b6915f62a8904d6521251375cd (patch)
treec9f289d89374bb877072e1e0c5e6579aa8d261a9 /autoload/airline/themes/nord.vim
parent81d80e4a978aaab77e930b094bfb6780f695b438 (diff)
downloadnord-vim-73b3d340a735a2b6915f62a8904d6521251375cd.tar.gz
Uniform status lines config for bundled airline and lightline themes (#169)
The included theme bundles have not supported the "uniform status line" feature (GH-58), which allows to change the background color of the status bar (StatusLine) group to `nord3`. Related to GH-58 Resolves GH-168
Diffstat (limited to 'autoload/airline/themes/nord.vim')
-rwxr-xr-xautoload/airline/themes/nord.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/airline/themes/nord.vim b/autoload/airline/themes/nord.vim
index 022f146..d82ef66 100755
--- a/autoload/airline/themes/nord.vim
+++ b/autoload/airline/themes/nord.vim
@@ -80,7 +80,11 @@ let g:airline#themes#nord#palette.visual.airline_error = s:VError
let s:IAMain = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term]
let s:IARight = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term]
-let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term]
+if g:nord_uniform_status_lines == 0
+ let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term]
+else
+ let s:IAMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term]
+endif
let s:IAWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term]
let s:IAError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term]
let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle)