flexoki-neovim/lua/flexoki/theme.lua
2024-02-02 08:49:27 -07:00

24 lines
497 B
Lua

local highlights = require('flexoki.highlights')
local hl = vim.api.nvim_set_hl
local M = {}
---@param opts FlexokiOptions
M.set_highlights = function(opts)
local highlight_groups = highlights.groups()
-- Set users highlight_group customisations.
if opts.highlight_groups ~= nil then
for group, highlight in pairs(opts.highlight_groups) do
highlight_groups[group] = highlight
end
end
for group, highlight in pairs(highlight_groups) do
hl(0, group, highlight)
end
end
return M