summaryrefslogtreecommitdiff
path: root/.vim/pack/default/start/gruvbox/autoload
diff options
context:
space:
mode:
Diffstat (limited to '.vim/pack/default/start/gruvbox/autoload')
-rw-r--r--.vim/pack/default/start/gruvbox/autoload/airline/themes/gruvbox.vim79
-rw-r--r--.vim/pack/default/start/gruvbox/autoload/gruvbox.vim41
-rw-r--r--.vim/pack/default/start/gruvbox/autoload/lightline/colorscheme/gruvbox.vim57
3 files changed, 177 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:
diff --git a/.vim/pack/default/start/gruvbox/autoload/gruvbox.vim b/.vim/pack/default/start/gruvbox/autoload/gruvbox.vim
new file mode 100644
index 0000000..44bec6e
--- /dev/null
+++ b/.vim/pack/default/start/gruvbox/autoload/gruvbox.vim
@@ -0,0 +1,41 @@
1" -----------------------------------------------------------------------------
2" File: gruvbox.vim
3" Description: Retro groove color scheme for Vim
4" Author: morhetz <morhetz@gmail.com>
5" Source: https://github.com/morhetz/gruvbox
6" Last Modified: 09 Apr 2014
7" -----------------------------------------------------------------------------
8
9function! gruvbox#invert_signs_toggle()
10 if g:gruvbox_invert_signs == 0
11 let g:gruvbox_invert_signs=1
12 else
13 let g:gruvbox_invert_signs=0
14 endif
15
16 colorscheme gruvbox
17endfunction
18
19" Search Highlighting {{{
20
21function! gruvbox#hls_show()
22 set hlsearch
23 call GruvboxHlsShowCursor()
24endfunction
25
26function! gruvbox#hls_hide()
27 set nohlsearch
28 call GruvboxHlsHideCursor()
29endfunction
30
31function! gruvbox#hls_toggle()
32 if &hlsearch
33 call gruvbox#hls_hide()
34 else
35 call gruvbox#hls_show()
36 endif
37endfunction
38
39" }}}
40
41" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker:
diff --git a/.vim/pack/default/start/gruvbox/autoload/lightline/colorscheme/gruvbox.vim b/.vim/pack/default/start/gruvbox/autoload/lightline/colorscheme/gruvbox.vim
new file mode 100644
index 0000000..4730c09
--- /dev/null
+++ b/.vim/pack/default/start/gruvbox/autoload/lightline/colorscheme/gruvbox.vim
@@ -0,0 +1,57 @@
1" -----------------------------------------------------------------------------
2" File: gruvbox.vim
3" Description: Gruvbox colorscheme for Lightline (itchyny/lightline.vim)
4" Author: gmoe <me@griffinmoe.com>
5" Source: https://github.com/morhetz/gruvbox
6" Last Modified: 20 Sep 2017
7" -----------------------------------------------------------------------------
8
9function! s:getGruvColor(group)
10 let guiColor = synIDattr(hlID(a:group), "fg", "gui")
11 let termColor = synIDattr(hlID(a:group), "fg", "cterm")
12 return [ guiColor, termColor ]
13endfunction
14
15if exists('g:lightline')
16
17 let s:bg0 = s:getGruvColor('GruvboxBg0')
18 let s:bg1 = s:getGruvColor('GruvboxBg1')
19 let s:bg2 = s:getGruvColor('GruvboxBg2')
20 let s:bg4 = s:getGruvColor('GruvboxBg4')
21 let s:fg1 = s:getGruvColor('GruvboxFg1')
22 let s:fg4 = s:getGruvColor('GruvboxFg4')
23
24 let s:yellow = s:getGruvColor('GruvboxYellow')
25 let s:blue = s:getGruvColor('GruvboxBlue')
26 let s:aqua = s:getGruvColor('GruvboxAqua')
27 let s:orange = s:getGruvColor('GruvboxOrange')
28 let s:green = s:getGruvColor('GruvboxGreen')
29
30 let s:p = {'normal':{}, 'inactive':{}, 'insert':{}, 'replace':{}, 'visual':{}, 'tabline':{}, 'terminal':{}}
31 let s:p.normal.left = [ [ s:bg0, s:fg4, 'bold' ], [ s:fg4, s:bg2 ] ]
32 let s:p.normal.right = [ [ s:bg0, s:fg4 ], [ s:fg4, s:bg2 ] ]
33 let s:p.normal.middle = [ [ s:fg4, s:bg1 ] ]
34 let s:p.inactive.right = [ [ s:bg4, s:bg1 ], [ s:bg4, s:bg1 ] ]
35 let s:p.inactive.left = [ [ s:bg4, s:bg1 ], [ s:bg4, s:bg1 ] ]
36 let s:p.inactive.middle = [ [ s:bg4, s:bg1 ] ]
37 let s:p.insert.left = [ [ s:bg0, s:blue, 'bold' ], [ s:fg1, s:bg2 ] ]
38 let s:p.insert.right = [ [ s:bg0, s:blue ], [ s:fg1, s:bg2 ] ]
39 let s:p.insert.middle = [ [ s:fg4, s:bg2 ] ]
40 let s:p.terminal.left = [ [ s:bg0, s:green, 'bold' ], [ s:fg1, s:bg2 ] ]
41 let s:p.terminal.right = [ [ s:bg0, s:green ], [ s:fg1, s:bg2 ] ]
42 let s:p.terminal.middle = [ [ s:fg4, s:bg2 ] ]
43 let s:p.replace.left = [ [ s:bg0, s:aqua, 'bold' ], [ s:fg1, s:bg2 ] ]
44 let s:p.replace.right = [ [ s:bg0, s:aqua ], [ s:fg1, s:bg2 ] ]
45 let s:p.replace.middle = [ [ s:fg4, s:bg2 ] ]
46 let s:p.visual.left = [ [ s:bg0, s:orange, 'bold' ], [ s:bg0, s:bg4 ] ]
47 let s:p.visual.right = [ [ s:bg0, s:orange ], [ s:bg0, s:bg4 ] ]
48 let s:p.visual.middle = [ [ s:fg4, s:bg1 ] ]
49 let s:p.tabline.left = [ [ s:fg4, s:bg2 ] ]
50 let s:p.tabline.tabsel = [ [ s:bg0, s:fg4 ] ]
51 let s:p.tabline.middle = [ [ s:bg0, s:bg0 ] ]
52 let s:p.tabline.right = [ [ s:bg0, s:orange ] ]
53 let s:p.normal.error = [ [ s:bg0, s:orange ] ]
54 let s:p.normal.warning = [ [ s:bg2, s:yellow ] ]
55
56 let g:lightline#colorscheme#gruvbox#palette = lightline#colorscheme#flatten(s:p)
57endif