diff options
author | kylo252 <[email protected]> | 2022-03-19 13:55:34 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-19 16:25:34 +0330 |
commit | 1488deebc714d66427fe0b55e6b9df0a0db97df4 (patch) | |
tree | 7bcdfee15d1bfeaf335fb6321d53ac43ed88307d /lua/onedarker/util.lua | |
parent | 5a8ccd9fcb3b7be2a07d92246e7bc764409ed537 (diff) |
refactor: load onedarker theme externally (#2359)
Diffstat (limited to 'lua/onedarker/util.lua')
-rw-r--r-- | lua/onedarker/util.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lua/onedarker/util.lua b/lua/onedarker/util.lua deleted file mode 100644 index dbac18a2..00000000 --- a/lua/onedarker/util.lua +++ /dev/null @@ -1,25 +0,0 @@ -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 cmd = table.concat({ - "highlight", - group, - bg, - fg, - style, - }, " ") - - vim.api.nvim_command(cmd) -end - -function M.initialise(skeleton) - for group, properties in pairs(skeleton) do - highlight(group, properties) - end -end - -return M |