aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin/colors.lua
blob: d6d0d18100cb5da37f8a0c9cb9a2248ff8376522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local Color, colors, Group, groups, styles = require('colorbuddy').setup()

-- Use Color.new(<name>, <#rrggbb>) to create new colors
-- They can be accessed through colors.<name>
Color.new('background',  '#282c34')
Color.new('red',         '#cc6666')
Color.new('green',       '#99cc99')
Color.new('yellow',      '#f0c674')

-- Define highlights in terms of `colors` and `groups`
Group.new('Comment' , colors.yellow      , colors.background , styles.bold)
Group.new('Special' , groups.Comment    , groups.Comment   , groups.Comment)
Group.new('NonText' , groups.Comment    , groups.Comment   , groups.Comment)

-- Define highlights in relative terms of other colors
Group.new('Error'           , colors.red:light() , nil               , styles.bold)