diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-12-05 13:01:18 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-12-05 13:01:18 +0100 |
| commit | d877fb6f0cd64d847c7e19bc4d0a04dedd14aa69 (patch) | |
| tree | 823c8360e0ffecbee527d971b92ed5629c5fe040 /lua/alpha/colors.lua | |
| parent | 5de6c2b78db78cd9da3b0ae240d8a40e65eba12f (diff) | |
| download | nvim-conf-d877fb6f0cd64d847c7e19bc4d0a04dedd14aa69.tar.gz nvim-conf-d877fb6f0cd64d847c7e19bc4d0a04dedd14aa69.zip | |
Add colors support
Diffstat (limited to 'lua/alpha/colors.lua')
| -rw-r--r-- | lua/alpha/colors.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/alpha/colors.lua b/lua/alpha/colors.lua new file mode 100644 index 0000000..d6d0d18 --- /dev/null +++ b/lua/alpha/colors.lua @@ -0,0 +1,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) |