From d7304f2b4ee1d2daae8f4a5492e0a0d7cbb92dfa Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sat, 14 Aug 2021 12:41:11 +0600 Subject: [PATCH] Remove support for deprecated themes --- lua/lualine.lua | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index 34fa72f..94cc78f 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -145,42 +145,6 @@ end local function tabline() return statusline(config.tabline, true) end -local function check_theme_name_deprecation(theme_name) - local deprection_table = { - oceanicnext = 'OceanicNext', - papercolor = 'PaperColor', - tomorrow = 'Tomorrow', - gruvbox_material = 'gruvbox-material', - modus_vivendi = 'modus-vivendi', - } - if deprection_table[theme_name] then - local correct_name = deprection_table[theme_name] - modules.utils_notices.add_notice(string.format([[ -### options.theme -You're using `%s` as theme name . -It has recently been renamed to `%s`. -Please update your config to follow that. - -You have something like this in your config. -```lua -options = { - theme = '%s' -} -``` - -You'll have to change it to something like this. -```lua -options = { - theme = '%s' -} -``` - -]], theme_name, correct_name, theme_name, correct_name)) - return correct_name - end - return theme_name -end - local function notify_theme_error(theme_name) local message_template = theme_name ~= 'auto' and [[ ### options.theme @@ -199,7 +163,6 @@ local function setup_theme() local function get_theme_from_config() local theme_name = config.options.theme if type(theme_name) == 'string' then - theme_name = check_theme_name_deprecation(theme_name) local ok, theme = pcall(modules.loader.load_theme, theme_name) if ok and theme then return theme end elseif type(theme_name) == 'table' then