From bc2257a4c053c80049e3011396bd91dbf02b58ac Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 4 May 2022 20:32:37 +0530 Subject: [PATCH] fix broken theme switcher (#1009) thanks to @max397574 --- lua/base16.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/base16.lua b/lua/base16.lua index 4439548..4b81ec4 100644 --- a/lua/base16.lua +++ b/lua/base16.lua @@ -31,7 +31,10 @@ M.merge_tb = function(table1, table2) end M.load_theme = function() - package.loaded["chadlights" or false] = nil + -- reload highlights for theme switcher + require("plenary.reload").reload_module "integrations" + require("plenary.reload").reload_module "chadlights" + require "chadlights" end