From 8c2b84e3ac905238da95567a012d6254a7ea52b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Joly?= Date: Tue, 10 May 2022 08:16:16 +0100 Subject: [PATCH] fixup! refactor: use nvim_set_hl to speed up startup time --- lua/onedark/highlights.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/onedark/highlights.lua b/lua/onedark/highlights.lua index 7bd47034..f6b3ce60 100644 --- a/lua/onedark/highlights.lua +++ b/lua/onedark/highlights.lua @@ -12,8 +12,8 @@ local function vim_highlights_nvim070(highlights) bg = group_settings.bg or "none", sp = group_settings.sp or "none", } - if not group_settings.fmt == nil then - for setting in vim.split(group_settings, ",") do + if group_settings.fmt and group_settings.fmt ~= "none" then + for _, setting in pairs(vim.split(group_settings.fmt, ",")) do settings[setting] = 1 end end