summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/util.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-02-14 00:57:05 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-02-14 00:57:05 +0100
commitd9bc0bbc4c01f6ca8c6b27065d496e0926d3c90f (patch)
tree6effdfdf9b0ca91c0fb5079b1d11158c9ea8f278 /lua/no-clown-fiesta/util.lua
parent3e4b0088e0ecd494bc258b6f96d320e49d1cda30 (diff)
Refactor
Diffstat (limited to 'lua/no-clown-fiesta/util.lua')
-rw-r--r--lua/no-clown-fiesta/util.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/no-clown-fiesta/util.lua b/lua/no-clown-fiesta/util.lua
index 46e66d3..e88d742 100644
--- a/lua/no-clown-fiesta/util.lua
+++ b/lua/no-clown-fiesta/util.lua
@@ -1,12 +1,12 @@
local M = {}
-local function highlight(group, properties)
- vim.api.nvim_set_hl(0, group, properties)
+local function highlight(name, value)
+ vim.api.nvim_set_hl(0, name, value)
end
-function M.initialise(skeleton)
- for group, properties in pairs(skeleton) do
- highlight(group, properties)
+function M.initialise(group)
+ for name, value in pairs(group) do
+ highlight(name, value)
end
end