summaryrefslogtreecommitdiff
path: root/lua/spacegray/util.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-31 18:36:51 -0400
committerchristianchiarulli <[email protected]>2021-07-31 18:36:51 -0400
commit915603ed074bf5fe784b95508ad80a81eee24028 (patch)
treee91508a4f741e9cf319ca1a52b0b08e1eca7c252 /lua/spacegray/util.lua
parent2b09dbf0984e836255a294d746159a68bdeb9be8 (diff)
udpate colorscheme
Diffstat (limited to 'lua/spacegray/util.lua')
-rw-r--r--lua/spacegray/util.lua27
1 files changed, 12 insertions, 15 deletions
diff --git a/lua/spacegray/util.lua b/lua/spacegray/util.lua
index dbac18a2..1cc5a009 100644
--- a/lua/spacegray/util.lua
+++ b/lua/spacegray/util.lua
@@ -1,25 +1,22 @@
local M = {}
local function highlight(group, properties)
- local bg = properties.bg == nil and "" or "guibg=" .. properties.bg
- local fg = properties.fg == nil and "" or "guifg=" .. properties.fg
- local style = properties.style == nil and "" or "gui=" .. properties.style
+ local bg = properties.bg == nil and "" or "guibg=" .. properties.bg
+ local fg = properties.fg == nil and "" or "guifg=" .. properties.fg
+ local style = properties.style == nil and "" or "gui=" .. properties.style
- local cmd = table.concat({
- "highlight",
- group,
- bg,
- fg,
- style,
- }, " ")
+ local cmd = table.concat({
+ "highlight", group, bg, fg, style
+ }, " ")
- vim.api.nvim_command(cmd)
+ vim.api.nvim_command(cmd)
end
+
function M.initialise(skeleton)
- for group, properties in pairs(skeleton) do
- highlight(group, properties)
- end
+ for group, properties in pairs(skeleton) do
+ highlight(group, properties)
+ end
end
-return M
+return M \ No newline at end of file