Skip to content

Instantly share code, notes, and snippets.

@timhatch
Created November 7, 2016 10:26
Show Gist options
  • Save timhatch/d0994c5050f42835b2b3f63c98b139ca to your computer and use it in GitHub Desktop.
Save timhatch/d0994c5050f42835b2b3f63c98b139ca to your computer and use it in GitHub Desktop.
Custom lightline colorscheme, derived from the default with modifications to the tab colours
" =============================================================================
" Filename: autoload/lightline/colorscheme/lightline.vim
" Author: tim
" License: MIT License
" Last Change: 2016/11/07 10:24:00.
" =============================================================================
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
let s:p.normal.left = [ ['darkestgreen', 'brightgreen', 'bold'], ['white', 'gray4'] ]
let s:p.normal.right = [ ['gray5', 'gray10'], ['gray9', 'gray4'], ['gray8', 'gray2'] ]
let s:p.inactive.right = [ ['gray1', 'gray5'], ['gray4', 'gray1'], ['gray4', 'gray0'] ]
let s:p.inactive.left = s:p.inactive.right[1:]
let s:p.insert.left = [ ['darkestcyan', 'white', 'bold'], ['white', 'darkblue'] ]
let s:p.insert.right = [ [ 'darkestcyan', 'mediumcyan' ], [ 'mediumcyan', 'darkblue' ], [ 'mediumcyan', 'darkestblue' ] ]
let s:p.replace.left = [ ['white', 'brightred', 'bold'], ['white', 'gray4'] ]
let s:p.visual.left = [ ['darkred', 'brightorange', 'bold'], ['white', 'gray4'] ]
let s:p.normal.middle = [ [ 'gray7', 'gray2' ] ]
let s:p.insert.middle = [ [ 'mediumcyan', 'darkestblue' ] ]
let s:p.replace.middle = s:p.normal.middle
let s:p.replace.right = s:p.normal.right
let s:p.tabline.left = [ [ 'gray9', 'gray1' ] ]
let s:p.tabline.tabsel = [ [ 'white', 'brightred' ] ]
let s:p.tabline.middle = [ [ 'gray7', 'gray1' ] ]
let s:p.tabline.right = [ [ 'gray7', 'gray1' ] ]
let s:p.normal.error = [ [ 'gray9', 'brightestred' ] ]
let s:p.normal.warning = [ [ 'gray1', 'yellow' ] ]
let g:lightline#colorscheme#lightline#palette = lightline#colorscheme#fill(s:p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment