fix conditional checking custom hl group

This commit is contained in:
Trevor Whitney 2024-02-02 08:49:27 -07:00
parent dad7ca6f12
commit 438f1b1eae
No known key found for this signature in database

View File

@ -6,11 +6,10 @@ 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
if opts.highlight_groups ~= nil then
for group, highlight in pairs(opts.highlight_groups) do
highlight_groups[group] = highlight
end