onehalfdark.vim 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. " =============================================================================
  2. " Filename: autoload/lightline/colorscheme/onehalfdark.vim
  3. " Author: sonph
  4. " License: MIT License
  5. " Last Change: 2019/12/01
  6. " =============================================================================
  7. let s:mono0 = [ '#282c34', 236 ]
  8. let s:mono1 = [ '#313640', 238 ]
  9. let s:mono2 = [ '#5d677a', 243 ]
  10. let s:mono3 = [ '#dcdfe4', 255 ]
  11. let s:yellow = [ '#e5c07b', 180 ]
  12. let s:red = [ '#e06c75', 168 ]
  13. let s:magenta = [ '#c678dd', 176 ]
  14. let s:blue = [ '#61afef', 75 ]
  15. let s:cyan = [ '#56b6c2', 73 ]
  16. let s:green = [ '#98c379', 114 ]
  17. let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
  18. let s:p.normal.left = [ [ s:mono0, s:green ], [ s:mono3, s:mono2 ] ]
  19. let s:p.normal.middle = [ [ s:green, s:mono1 ] ]
  20. let s:p.normal.right = [ [ s:mono0, s:green ], [ s:mono3, s:mono2 ] ]
  21. let s:p.normal.error = [ [ s:mono0, s:red ] ]
  22. let s:p.normal.warning = [ [ s:mono0, s:yellow ] ]
  23. let s:p.inactive.left = [ [ s:mono3, s:mono2 ], [ s:mono3, s:mono2 ] ]
  24. let s:p.inactive.middle = [ [ s:mono3, s:mono1 ] ]
  25. let s:p.inactive.right = [ [ s:mono0, s:mono3 ], [ s:mono3, s:mono2 ] ]
  26. let s:p.insert.left = [ [ s:mono0, s:blue ], [ s:mono3, s:mono2 ] ]
  27. let s:p.insert.middle = [ [ s:blue, s:mono1 ] ]
  28. let s:p.insert.right = [ [ s:mono0, s:blue ], [ s:mono3, s:mono2 ] ]
  29. let s:p.replace.left = [ [ s:mono0, s:red ], [ s:mono3, s:mono2 ] ]
  30. let s:p.replace.middle = [ [ s:red, s:mono1 ] ]
  31. let s:p.replace.right = [ [ s:mono0, s:red ], [ s:mono3, s:mono2 ] ]
  32. let s:p.visual.left = [ [ s:mono0, s:yellow ], [ s:mono3, s:mono2 ] ]
  33. let s:p.visual.middle = [ [ s:yellow, s:mono1 ] ]
  34. let s:p.visual.right = [ [ s:mono0, s:yellow ], [ s:mono3, s:mono2 ] ]
  35. let s:p.tabline.left = [ [ s:mono2, s:mono1] ]
  36. let s:p.tabline.tabsel = [ [ s:mono3, s:mono2 ] ]
  37. let s:p.tabline.middle = [ [ s:mono2, s:mono1] ]
  38. let s:p.tabline.right = [ [ s:mono0, s:mono3 ] ]
  39. let g:lightline#colorscheme#onehalfdark#palette = lightline#colorscheme#flatten(s:p)