From 1488deebc714d66427fe0b55e6b9df0a0db97df4 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 19 Mar 2022 13:55:34 +0100 Subject: refactor: load onedarker theme externally (#2359) --- lua/onedarker/util.lua | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 lua/onedarker/util.lua (limited to 'lua/onedarker/util.lua') 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 -- cgit v1.2.3