Merge pull request #7 from trevorwhitney/fix-custom-hl-groups

Fix custom hl groups
This commit is contained in:
Jan Polák 2024-02-07 21:54:48 +01:00 committed by GitHub
commit 975654bce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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