From 7a8e32ee65d69405cd52f75f1ac7f73bfdeb440f Mon Sep 17 00:00:00 2001 From: Lenovsky <20926600+Lenovsky@users.noreply.github.com> Date: Fri, 12 Jul 2019 22:27:57 +0200 Subject: Add support for lightline.vim (#35) * Add support for lightline.vim * Add lightline.vim colour scheme for inactive windows --- autoload/lightline/colorscheme/ayu.vim | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 autoload/lightline/colorscheme/ayu.vim (limited to 'autoload/lightline') diff --git a/autoload/lightline/colorscheme/ayu.vim b/autoload/lightline/colorscheme/ayu.vim new file mode 100644 index 0000000..ae528b4 --- /dev/null +++ b/autoload/lightline/colorscheme/ayu.vim @@ -0,0 +1,34 @@ +let s:style = get(g:, 'ayucolor', 'dark') + +let s:fg = {} +let s:fg.primary = {'dark': '#E6E1CF', 'light': '#5C6773', 'mirage': '#D9D7CE'}[s:style] +let s:fg.secondary = {'dark': '#14191F', 'light': '#F0F0F0', 'mirage': '#232838'}[s:style] +let s:fg.contrast = {'dark': '#C2D94C', 'light': '#86B300', 'mirage': '#BAE67E'}[s:style] +let s:fg.warning = {'dark': '#FFBD54', 'light': '#F2AE49', 'mirage': '#FFDF80'}[s:style] +let s:fg.error = {'dark': '#FF3333', 'light': '#FFF333', 'mirage': '#FF3333'}[s:style] + +let s:bg = {} +let s:bg.primary = {'dark': '#161F2A', 'light': '#DEE8F1', 'mirage': '#2A3546'}[s:style] +let s:bg.secondary = {'dark': '#14191F', 'light': '#F0F0F0', 'mirage': '#232838'}[s:style] +let s:bg.contrast = {'dark': '#E6B450', 'light': '#FF9940', 'mirage': '#FFCC66'}[s:style] +let s:bg.normal = {'dark': '#01060E', 'light': '#D3D5D7', 'mirage': '#141925'}[s:style] +let s:bg.insert = {'dark': '#39BAE6', 'light': '#55B4D4', 'mirage': '#5CCFE6'}[s:style] +let s:bg.replace = {'dark': '#FF8F40', 'light': '#FA8D3E', 'mirage': '#FFA759'}[s:style] +let s:bg.visual = {'dark': '#A37ACC', 'light': '#A37ACC', 'mirage': '#D4BFFF'}[s:style] + +let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} +let s:p.normal.left = [[s:fg.primary, s:bg.normal], [s:fg.primary, s:bg.primary]] +let s:p.normal.right = [[s:fg.primary, s:bg.primary], [s:fg.primary, s:bg.primary]] +let s:p.normal.middle = [[s:fg.contrast, s:bg.secondary]] +let s:p.normal.error = [[s:fg.error, s:bg.primary, 'bold']] +let s:p.normal.warning = [[s:fg.warning, s:bg.primary, 'bold']] +let s:p.inactive.left = [[s:fg.primary, s:bg.secondary]] +let s:p.inactive.right = [[s:fg.primary, s:bg.secondary]] +let s:p.inactive.middle = [[s:fg.primary, s:bg.secondary]] +let s:p.insert.left = [[s:fg.secondary, s:bg.insert], [s:fg.primary, s:bg.primary]] +let s:p.replace.left = [[s:fg.secondary, s:bg.replace], [s:fg.primary, s:bg.primary]] +let s:p.visual.left = [[s:fg.secondary, s:bg.visual], [s:fg.primary, s:bg.primary]] +let s:p.tabline.left = [[s:fg.primary, s:bg.primary]] +let s:p.tabline.tabsel = [[s:fg.secondary, s:bg.contrast]] + +let g:lightline#colorscheme#ayu#palette = lightline#colorscheme#fill(s:p) -- cgit v1.2.3-18-g5258