Shadman 7460fe5aa2
Added notermguicolor support and special effects (#27)
* Added notermguicolor support and special effects
* Added notermgui support
* Exposed special parameters for highlight(like bold,italic) to themes
  with gui like to bold "B" in normal mode do normal.b.gui = 'bold'
* Changed CONTRIBUTING.md to reflect current notermguicolor support
* Added calculating cterm values from rgb
* refactored highlight function
* Removed 'bold' default for a element
* Updated themes
* Adding function genarated cterm values to themes
* Updating CONTRIBUTING.md
* made colorschemes more compact

Co-authored-by: hoob3rt <pelczarskihubert@gmail.com>
2021-01-08 02:35:09 +01:00

54 lines
1.5 KiB
Lua

local gruvbox = {}
local colors = {
black = {"#282828", 235},
white = {'#ebdbb2', 223},
red = {'#fb4934', 203},
green = {'#b8bb26', 143},
blue = {'#83a598', 108},
yellow = {'#fe8019', 209},
gray = {'#a89984', 144},
darkgray = {'#3c3836', 237},
lightgray = {'#504945', 239},
inactivegray = {'#7c6f64', 242},
}
gruvbox.normal = {
a = { bg = colors.gray, fg = colors.black, gui = 'bold', },
b = { bg = colors.lightgray, fg = colors.white, },
c = { bg = colors.darkgray, fg = colors.gray }
}
gruvbox.insert = {
a = { bg = colors.blue, fg = colors.black, gui = 'bold', },
b = { bg = colors.lightgray, fg = colors.white, },
c = { bg = colors.lightgray, fg = colors.white }
}
gruvbox.visual = {
a = { bg = colors.yellow, fg = colors.black, gui = 'bold', },
b = { bg = colors.lightgray, fg = colors.white, },
c = { bg = colors.inactivegray, fg = colors.black },
}
gruvbox.replace = {
a = { bg = colors.red, fg = colors.black, gui = 'bold', },
b = { bg = colors.lightgray, fg = colors.white, },
c = { bg = colors.black, fg = colors.white },
}
gruvbox.command = {
a = { bg = colors.green, fg = colors.black, gui = 'bold', },
b = { bg = colors.lightgray, fg = colors.white, },
c = { bg = colors.inactivegray, fg = colors.black },
}
gruvbox.inactive = {
a = { bg = colors.darkgray, fg = colors.gray, gui = 'bold', },
b = { bg = colors.darkgray, fg = colors.gray, },
c = { bg = colors.darkgray, fg = colors.gray },
}
return gruvbox