summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-29 13:06:11 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-29 13:06:11 +0200
commit507e47fe36cf99a5adb6edee13b2b2fa94e97dc5 (patch)
tree2b287e68da3032a6725703fb60f8b345b54d567f
parent75d4dda89f3babc358ce51ec5daff0deca7bd90a (diff)
Add empty table if props are nil
-rw-r--r--lua/no-clown-fiesta/util.lua2
1 files changed, 1 insertions, 1 deletions
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)