shadmansaleh 32727039a9 |DEPRECATION| enhance(themes): Auto colorscheme detection and more
- `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
2021-08-14 12:35:08 +06:00

44 lines
1.3 KiB
Lua

-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Genarated by lightline to lualine theme converter
-- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9
-- LuaFormatter off
local colors = {
color14 = '#718c00',
color0 = '#666666',
color1 = '#c8c8c8',
color2 = '#808080',
color3 = '#fafafa',
color4 = '#4271ae',
color5 = '#4d4d4c',
color6 = '#b4b4b4',
color7 = '#555555',
color8 = '#8959a8',
color11 = '#f5871f',
}
-- LuaFormatter on
return {
inactive = {
a = {fg = colors.color0, bg = colors.color1, gui = 'bold'},
b = {fg = colors.color2, bg = colors.color3},
c = {fg = colors.color0, bg = colors.color1}
},
normal = {
a = {fg = colors.color1, bg = colors.color4, gui = 'bold'},
b = {fg = colors.color5, bg = colors.color6},
c = {fg = colors.color7, bg = colors.color1}
},
visual = {
a = {fg = colors.color1, bg = colors.color8, gui = 'bold'},
b = {fg = colors.color5, bg = colors.color6}
},
replace = {
a = {fg = colors.color1, bg = colors.color11, gui = 'bold'},
b = {fg = colors.color5, bg = colors.color6}
},
insert = {
a = {fg = colors.color1, bg = colors.color14, gui = 'bold'},
b = {fg = colors.color5, bg = colors.color6}
}
}