diff options
author | Abouzar Parvan <[email protected]> | 2021-07-15 05:51:16 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-15 05:51:16 +0430 |
commit | 64eeec38808d27b3709f92862bd07e25140add59 (patch) | |
tree | f4987102a03aef947e4a24d9496d941f7e206bec /lua/spacegray/util.lua | |
parent | f95e150518e40f08a2cb31365e90895e31465d7e (diff) |
fixed styling issues (#952)
Diffstat (limited to 'lua/spacegray/util.lua')
-rw-r--r-- | lua/spacegray/util.lua | 27 |
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 |