strlst.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. -- Custom color codes Copyright (c) 2018 satorialist, base colors taken from Ethan Schoonover's solarized theme
  2. local lexers = vis.lexers
  3. local colors = {
  4. base04 = '#100410',
  5. base03 = '#442244',
  6. base02 = '#053440',
  7. base01 = '#586e75',
  8. base00 = '#657b83',
  9. base0 = '#c8d7d8',
  10. --base0 = '#9facad',
  11. base1 = '#93a1a1',
  12. base2 = '#eee8d5',
  13. base3 = '#fdf6e3',
  14. yellow = '#b58900',
  15. orange = '#cb4b16',
  16. red = '#dc322f',
  17. magenta = '#d33682',
  18. violet = '#6c71c4',
  19. blue = '#2aa198',
  20. cyan = '#3ab1a8',
  21. green = '#0884c0',
  22. }
  23. lexers.colors = colors
  24. -- dark
  25. local fg = ',fore:'..colors.base0..','
  26. local bg = ',back:'..colors.base04..','
  27. -- light
  28. -- local fg = ',fore:'..colors.base04..','
  29. -- local bg = ',back:'..colors.base3..','
  30. lexers.STYLE_DEFAULT = bg..fg
  31. lexers.STYLE_NOTHING = bg
  32. lexers.STYLE_CLASS = 'fore:yellow'
  33. lexers.STYLE_COMMENT = 'fore:'..colors.base01
  34. lexers.STYLE_CONSTANT = 'fore:'..colors.cyan
  35. lexers.STYLE_DEFINITION = 'fore:'..colors.blue
  36. lexers.STYLE_ERROR = 'fore:'..colors.red..',italics'
  37. lexers.STYLE_FUNCTION = 'fore:'..colors.blue
  38. lexers.STYLE_KEYWORD = 'fore:'..colors.green
  39. lexers.STYLE_LABEL = 'fore:'..colors.green
  40. lexers.STYLE_NUMBER = 'fore:'..colors.cyan
  41. lexers.STYLE_OPERATOR = 'fore:'..colors.green
  42. lexers.STYLE_REGEX = 'fore:green'
  43. lexers.STYLE_STRING = 'fore:'..colors.cyan
  44. lexers.STYLE_PREPROCESSOR = 'fore:'..colors.orange
  45. lexers.STYLE_TAG = 'fore:'..colors.red
  46. lexers.STYLE_TYPE = 'fore:'..colors.yellow
  47. lexers.STYLE_VARIABLE = 'fore:'..colors.blue
  48. lexers.STYLE_WHITESPACE = 'fore:'..colors.base03
  49. lexers.STYLE_EMBEDDED = 'back:blue'
  50. lexers.STYLE_IDENTIFIER = fg
  51. lexers.STYLE_LINENUMBER = 'fore:'..colors.base00..',back:'..colors.base04
  52. lexers.STYLE_LINENUMBER_CURSOR = 'back:'..colors.base00..',fore:'..colors.base04
  53. lexers.STYLE_CURSOR = 'fore:'..colors.base04..',back:'..colors.base0
  54. lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',back:yellow'
  55. lexers.STYLE_CURSOR_LINE = 'back:'..colors.base02
  56. lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base02
  57. -- lexers.STYLE_SELECTION = 'back:'..colors.base02
  58. lexers.STYLE_SELECTION = 'back:white'
  59. lexers.STYLE_STATUS = 'back:'..colors.base00..',fore:'..colors.base02
  60. lexers.STYLE_STATUS_FOCUSED = 'back:'..colors.base1..',fore:'..colors.base02
  61. lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
  62. lexers.STYLE_INFO = 'fore:default,back:default,bold'
  63. lexers.STYLE_EOF = 'fore:'..colors.base01