summaryrefslogtreecommitdiff
path: root/.vim/pack/default/start/gruvbox/autoload/airline
diff options
context:
space:
mode:
Diffstat (limited to '.vim/pack/default/start/gruvbox/autoload/airline')
-rw-r--r--.vim/pack/default/start/gruvbox/autoload/airline/themes/gruvbox.vim79
1 files changed, 79 insertions, 0 deletions
diff --git a/.vim/pack/default/start/gruvbox/autoload/airline/themes/gruvbox.vim b/.vim/pack/default/start/gruvbox/autoload/airline/themes/gruvbox.vim
new file mode 100644
index 0000000..6862a81
--- /dev/null
+++ b/.vim/pack/default/start/gruvbox/autoload/airline/themes/gruvbox.vim
@@ -0,0 +1,79 @@
1" -----------------------------------------------------------------------------
2" File: gruvbox.vim
3" Description: Retro groove color scheme for Airline
4" Author: morhetz <morhetz@gmail.com>
5" Source: https://github.com/morhetz/gruvbox
6" Last Modified: 12 Aug 2017
7" -----------------------------------------------------------------------------
8
9let g:airline#themes#gruvbox#palette = {}
10
11function! airline#themes#gruvbox#refresh()
12
13 let M0 = airline#themes#get_highlight('Identifier')
14 let accents_group = airline#themes#get_highlight('Special')
15 let modified_group = [M0[0], '', M0[2], '', '']
16 let warning_group = airline#themes#get_highlight2(['Normal', 'bg'], ['Question', 'fg'])
17 let error_group = airline#themes#get_highlight2(['Normal', 'bg'], ['WarningMsg', 'fg'])
18
19 let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['StatusLineNC', 'bg'])
20 let s:N2 = airline#themes#get_highlight2(['StatusLineNC', 'bg'], ['Pmenu', 'bg'])
21 let s:N3 = airline#themes#get_highlight2(['StatusLineNC', 'bg'], ['CursorLine', 'bg'])
22 let g:airline#themes#gruvbox#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
23 let g:airline#themes#gruvbox#palette.normal_modified = { 'airline_c': modified_group }
24 let g:airline#themes#gruvbox#palette.normal.airline_warning = warning_group
25 let g:airline#themes#gruvbox#palette.normal_modified.airline_warning = warning_group
26 let g:airline#themes#gruvbox#palette.normal.airline_error = error_group
27 let g:airline#themes#gruvbox#palette.normal_modified.airline_error = error_group
28
29 let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Identifier', 'fg'])
30 let s:I2 = s:N2
31 let s:I3 = airline#themes#get_highlight2(['Normal', 'fg'], ['Pmenu', 'bg'])
32 let g:airline#themes#gruvbox#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
33 let g:airline#themes#gruvbox#palette.insert_modified = g:airline#themes#gruvbox#palette.normal_modified
34 let g:airline#themes#gruvbox#palette.insert.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
35 let g:airline#themes#gruvbox#palette.insert_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
36 let g:airline#themes#gruvbox#palette.insert.airline_error = g:airline#themes#gruvbox#palette.normal.airline_error
37 let g:airline#themes#gruvbox#palette.insert_modified.airline_error = g:airline#themes#gruvbox#palette.normal_modified.airline_error
38
39 let s:R1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Structure', 'fg'])
40 let s:R2 = s:I2
41 let s:R3 = s:I3
42 let g:airline#themes#gruvbox#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
43 let g:airline#themes#gruvbox#palette.replace_modified = g:airline#themes#gruvbox#palette.normal_modified
44 let g:airline#themes#gruvbox#palette.replace.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
45 let g:airline#themes#gruvbox#palette.replace_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
46 let g:airline#themes#gruvbox#palette.replace.airline_error = g:airline#themes#gruvbox#palette.normal.airline_error
47 let g:airline#themes#gruvbox#palette.replace_modified.airline_error = g:airline#themes#gruvbox#palette.normal_modified.airline_error
48
49 let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Question', 'fg'])
50 let s:V2 = s:N2
51 let s:V3 = airline#themes#get_highlight2(['Normal', 'bg'], ['TabLine', 'fg'])
52 let g:airline#themes#gruvbox#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
53 let g:airline#themes#gruvbox#palette.visual_modified = { 'airline_c': [ s:V3[0], '', s:V3[2], '', '' ] }
54 let g:airline#themes#gruvbox#palette.visual.airline_warning = g:airline#themes#gruvbox#palette.normal.airline_warning
55 let g:airline#themes#gruvbox#palette.visual_modified.airline_warning = g:airline#themes#gruvbox#palette.normal_modified.airline_warning
56 let g:airline#themes#gruvbox#palette.visual.airline_error = g:airline#themes#gruvbox#palette.normal.airline_error
57 let g:airline#themes#gruvbox#palette.visual_modified.airline_error = g:airline#themes#gruvbox#palette.normal_modified.airline_error
58
59 let s:IA = airline#themes#get_highlight2(['TabLine', 'fg'], ['CursorLine', 'bg'])
60 let g:airline#themes#gruvbox#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
61 let g:airline#themes#gruvbox#palette.inactive_modified = { 'airline_c': modified_group }
62
63 let g:airline#themes#gruvbox#palette.accents = { 'red': accents_group }
64
65 let s:TF = airline#themes#get_highlight2(['Normal', 'bg'], ['Normal', 'bg'])
66 let g:airline#themes#gruvbox#palette.tabline = {
67 \ 'airline_tab': s:N2,
68 \ 'airline_tabsel': s:N1,
69 \ 'airline_tabtype': s:V1,
70 \ 'airline_tabfill': s:TF,
71 \ 'airline_tabhid': s:IA,
72 \ 'airline_tabmod': s:I1
73 \ }
74
75endfunction
76
77call airline#themes#gruvbox#refresh()
78
79" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: