lualine.nvim/lua/lualine/themes/gruvbox-material.lua
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

30 lines
958 B
Lua

-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- LuaFormatter off
local colors = {
fg1 = '#282828',
color2 = '#504945',
fg2 = '#ddc7a1',
color3 = '#32302f',
color4 = '#a89984',
color5 = '#7daea3',
color6 = '#a9b665',
color7 = '#d8a657',
color8 = '#d3869b',
color9 = '#ea6962',
}
-- LuaFormatter on
return {
normal = {
a = {fg = colors.fg1, bg = colors.color4, gui = 'bold'},
b = {fg = colors.fg2, bg = colors.color2},
c = {fg = colors.fg2, bg = colors.color3}
},
command = {a = {fg = colors.fg1, bg = colors.color5, gui = 'bold'}},
inactive = {a = {fg = colors.fg2, bg = colors.color2}},
insert = {a = {fg = colors.fg1, bg = colors.color6, gui = 'bold'}},
replace = {a = {fg = colors.fg1, bg = colors.color7, gui = 'bold'}},
terminal = {a = {fg = colors.fg1, bg = colors.color8, gui = 'bold'}},
visual = {a = {fg = colors.fg1, bg = colors.color9, gui = 'bold'}}
}