summaryrefslogtreecommitdiff
path: root/lua/spacegray/util.lua
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-08-01 12:02:19 +0200
committerGitHub <[email protected]>2021-08-01 10:02:19 +0000
commit341a17daa60562f553e41c4c6792a6c917d8d9ef (patch)
tree4dc4703c55b27d097756fb170b51e22c475f5d6c /lua/spacegray/util.lua
parente2dd993ce753f8d28e6c32c4697ba51cc8ace2bb (diff)
Fix formatting issues (#1200)
Diffstat (limited to 'lua/spacegray/util.lua')
-rw-r--r--lua/spacegray/util.lua27
1 files changed, 15 insertions, 12 deletions
diff --git a/lua/spacegray/util.lua b/lua/spacegray/util.lua
index 1cc5a009..dbac18a2 100644
--- a/lua/spacegray/util.lua
+++ b/lua/spacegray/util.lua
@@ -1,22 +1,25 @@
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 \ No newline at end of file
+return M