From 3e0332e6d2b9a2bf5c0a2e6c991b07625d24c287 Mon Sep 17 00:00:00 2001 From: Hubert Pelczarski <41551030+hoob3rt@users.noreply.github.com> Date: Tue, 16 Mar 2021 00:13:10 +0100 Subject: [PATCH] refactor: removed ability to set theme in runtime (#130) --- lua/lualine.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/lualine.lua b/lua/lualine.lua index ae35331..32597b3 100644 --- a/lua/lualine.lua +++ b/lua/lualine.lua @@ -7,8 +7,6 @@ local highlight = require('lualine.highlight') local M = { } -local theme_set = {} - M.options = { icons_enabled = true, theme = 'gruvbox', @@ -16,7 +14,6 @@ M.options = { section_separators = {'', ''}, } - M.sections = { lualine_a = { 'mode' }, lualine_b = { 'branch' }, @@ -201,14 +198,10 @@ local function lualine_set_theme() end utils.clear_highlights() highlight.create_highlight_groups(M.options.theme) - theme_set = M.options.theme end local function statusline(sections, is_focused) - if M.options.theme ~= theme_set then - _G.lualine_set_theme() - end local function create_status_builder() -- The sequence sections should maintain local section_sequence = {'a', 'b', 'c', 'x', 'y', 'z'}