32727039a9
- `auto` theme now auto loads available theme for colorschme based on g:color_name . If that fails then it generates a theme for that colorschme like before. - Theme from external source is preferred over bundled version in lualine . This means if user has a colorschme that provided the same theme as lualine the one from colorschme will be loaded. - Default value of theme is changed to `auto` from `gruvbox`. - Now when users theme from config fails lualine will fallbavk to `auto`. If `auto` fails then lualine will fallback to `gruvbox` - Some themes have been renamed to their actual name (g:color_name). older names have been deprecated. [DEPRECATION] oceanicnext -> OceanicNext papercolor -> PaperColor tomorrow -> Tomorrow gruvbox_material -> gruvbox-material modus_vivendi -> modus-vivendi - A few more adaptive themes added (aye, gruvbox, iceberg) - Updated THEMES.md to reflect changes in theme name
49 lines
1.5 KiB
Lua
49 lines
1.5 KiB
Lua
-- Copyright (c) 2020-2021 hoob3rt
|
|
-- MIT license, see LICENSE for more details.
|
|
-- LuaFormatter off
|
|
local colors = {
|
|
black = '#282828',
|
|
white = '#ebdbb2',
|
|
red = '#fb4934',
|
|
green = '#b8bb26',
|
|
blue = '#83a598',
|
|
yellow = '#fe8019',
|
|
gray = '#a89984',
|
|
darkgray = '#3c3836',
|
|
lightgray = '#504945',
|
|
inactivegray = '#7c6f64',
|
|
}
|
|
-- LuaFormatter on
|
|
return {
|
|
normal = {
|
|
a = {bg = colors.gray, fg = colors.black, gui = 'bold'},
|
|
b = {bg = colors.lightgray, fg = colors.white},
|
|
c = {bg = colors.darkgray, fg = colors.gray}
|
|
},
|
|
insert = {
|
|
a = {bg = colors.blue, fg = colors.black, gui = 'bold'},
|
|
b = {bg = colors.lightgray, fg = colors.white},
|
|
c = {bg = colors.lightgray, fg = colors.white}
|
|
},
|
|
visual = {
|
|
a = {bg = colors.yellow, fg = colors.black, gui = 'bold'},
|
|
b = {bg = colors.lightgray, fg = colors.white},
|
|
c = {bg = colors.inactivegray, fg = colors.black}
|
|
},
|
|
replace = {
|
|
a = {bg = colors.red, fg = colors.black, gui = 'bold'},
|
|
b = {bg = colors.lightgray, fg = colors.white},
|
|
c = {bg = colors.black, fg = colors.white}
|
|
},
|
|
command = {
|
|
a = {bg = colors.green, fg = colors.black, gui = 'bold'},
|
|
b = {bg = colors.lightgray, fg = colors.white},
|
|
c = {bg = colors.inactivegray, fg = colors.black}
|
|
},
|
|
inactive = {
|
|
a = {bg = colors.darkgray, fg = colors.gray, gui = 'bold'},
|
|
b = {bg = colors.darkgray, fg = colors.gray},
|
|
c = {bg = colors.darkgray, fg = colors.gray}
|
|
}
|
|
}
|