From ad78b9ffbfd8315d49ca97d8dfd27ad2ce9e382c Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 14 May 2022 16:04:12 +0530 Subject: [PATCH] fix custom themes not working (#68) --- lua/chadlights.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/chadlights.lua b/lua/chadlights.lua index 2b1e257..207ebcc 100644 --- a/lua/chadlights.lua +++ b/lua/chadlights.lua @@ -23,7 +23,11 @@ require "term_hl" local theme = pcall(require, "hl_themes." .. ui.theme) if theme then - highlights = merge_tb(highlights, require(theme).polish_hl) + local polish_hl = require("hl_themes." .. ui.theme).polish_hl + + if polish_hl then + highlights = merge_tb(highlights, polish_hl) + end end -- override user highlights if there are any