From 507e47fe36cf99a5adb6edee13b2b2fa94e97dc5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 29 Oct 2022 13:06:11 +0200 Subject: Add empty table if props are nil --- lua/no-clown-fiesta/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/no-clown-fiesta') diff --git a/lua/no-clown-fiesta/util.lua b/lua/no-clown-fiesta/util.lua index 46e66d3..d68abc1 100644 --- a/lua/no-clown-fiesta/util.lua +++ b/lua/no-clown-fiesta/util.lua @@ -1,7 +1,7 @@ local M = {} local function highlight(group, properties) - vim.api.nvim_set_hl(0, group, properties) + vim.api.nvim_set_hl(0, group, properties or {}) end function M.initialise(skeleton) -- cgit v1.2.3-70-g09d2