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
8 lines
241 B
Lua
8 lines
241 B
Lua
-- Copyright (c) 2020-2021 shadmansaleh
|
|
-- MIT license, see LICENSE for more details.
|
|
-- Credit: itchyny(lightline)
|
|
-- License: MIT License
|
|
local background = vim.opt.background:get()
|
|
|
|
return require('lualine.themes.gruvbox_' .. background)
|