nvim/lua/cosmic/utils/theme.lua
Matthew Leong 7e81d05408
Clean out themes + lots of clean up (#87)
* refactor: remove extra themes

* feat: clean up theme setup

* refactor: move highlights/colors to galaxyline plugin

* feat: add lualine sections

* feat: add lualine icons

* feat: add user config override for lualine

* refactor: remove galaxy line :D

* refactor: clean out notify-nvim configs

* refactor: clean up utils

* refactor: clean up utils - icons
2022-12-27 13:24:27 -08:00

24 lines
440 B
Lua

local M = {}
M.set_highlight = function(hi, colors)
local hi_str = ''
for k, v in pairs(colors) do
hi_str = hi_str .. k .. '=' .. v .. ' '
end
vim.cmd(('hi %s %s'):format(hi, hi_str))
end
M.get_highlight = function(hi)
local hi_str = vim.api.nvim_command_output(('hi %s'):format(hi))
local colors = {}
for key, val in string.gmatch(hi_str, '(%w+)=(%S+)') do
colors[key] = val
end
return colors
end
return M