summaryrefslogtreecommitdiff
path: root/lua/spacegray/util.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-14 23:15:17 -0400
committerchristianchiarulli <[email protected]>2021-07-14 23:15:17 -0400
commit7252ba7a312bbf39cd83843a5eaca9bd35605427 (patch)
tree2fdaa30726cd1c5522efd52efec2d0864e25f039 /lua/spacegray/util.lua
parentf58782563ea933f31e8886f511ec2b5824def19b (diff)
parent1411478e46a397b6649c44c82b67c9f48c53738a (diff)
Merge branch 'rolling' of github.com:ChristianChiarulli/LunarVim into rolling
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