flexoki-neovim/lua/flexoki/theme.lua

24 lines
497 B
Lua
Raw Normal View History

local highlights = require('flexoki.highlights')
local hl = vim.api.nvim_set_hl
2023-11-01 03:15:26 +08:00
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
2023-11-01 03:15:26 +08:00
return M