flexoki-neovim/lua/flexoki/theme.lua

25 lines
502 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 not 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