From 12c4337317ddf4a5af835007f673c64bd36f95aa Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sun, 25 Dec 2016 13:50:07 +0100 Subject: [PATCH] GHI-#3 Implement the vim-airline theme file --- autoload/airline/themes/nord.vim | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 autoload/airline/themes/nord.vim diff --git a/autoload/airline/themes/nord.vim b/autoload/airline/themes/nord.vim new file mode 100755 index 00000000..b5956033 --- /dev/null +++ b/autoload/airline/themes/nord.vim @@ -0,0 +1,69 @@ +" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +" title Nord Vim airline + +" project nord-vim + +" repository https://github.com/arcticicestudio/nord-vim + +" author Arctic Ice Studio + +" email development@arcticicestudio.com + +" copyright Copyright (C) 2016 + +" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +let s:nord_vim_version="" +let g:airline#themes#nord#palette = {} + +let s:nord0_gui = "#2E3440" +let s:nord1_gui = "#3B4252" +let s:nord2_gui = "#434C5E" +let s:nord3_gui = "#4C566A" +let s:nord4_gui = "#D8DEE9" +let s:nord5_gui = "#E5E9F0" +let s:nord6_gui = "#ECEFF4" +let s:nord7_gui = "#8FBCBB" +let s:nord8_gui = "#88C0D0" +let s:nord9_gui = "#81A1C1" +let s:nord10_gui = "#5E81AC" +let s:nord11_gui = "#BF616A" +let s:nord12_gui = "#D08770" +let s:nord13_gui = "#EBCB8B" +let s:nord14_gui = "#A3BE8C" +let s:nord15_gui = "#B48EAD" + +let s:nord0_term = "NONE" +let s:nord1_term = "0" +let s:nord2_term = "NONE" +let s:nord4_term = "NONE" +let s:nord11_term = "1" +let s:nord14_term = "2" +let s:nord13_term = "3" +let s:nord9_term = "4" +let s:nord15_term = "5" +let s:nord8_term = "6" +let s:nord5_term = "7" +let s:nord3_term = "8" +let s:nord12_term = "11" +let s:nord10_term = "12" +let s:nord7_term = "14" +let s:nord6_term = "15" + +let s:NMain = [s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term] +let s:NRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] +let s:NMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let g:airline#themes#nord#palette.normal = airline#themes#generate_color_map(s:NMain, s:NRight, s:NMiddle) + +let s:IMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord6_term] +let s:IRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] +let s:IMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let g:airline#themes#nord#palette.insert = airline#themes#generate_color_map(s:IMain, s:IRight, s:IMiddle) + +let s:RMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord14_term] +let s:RRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] +let s:RMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let g:airline#themes#nord#palette.replace = airline#themes#generate_color_map(s:RMain, s:RRight, s:RMiddle) + +let s:VMain = [s:nord1_gui, s:nord7_gui, s:nord1_term, s:nord7_term] +let s:VRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] +let s:VMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let g:airline#themes#nord#palette.visual = airline#themes#generate_color_map(s:VMain, s:VRight, s:VMiddle) + +let s:IAMain = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:IARight = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:IAMiddle = [s:nord4_gui, s:nord1_gui, s:nord4_term, s:nord1_term] +let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle)