fix conditional checking custom hl group
This commit is contained in:
parent
dad7ca6f12
commit
438f1b1eae
@ -6,11 +6,10 @@ local M = {}
|
|||||||
|
|
||||||
---@param opts FlexokiOptions
|
---@param opts FlexokiOptions
|
||||||
M.set_highlights = function(opts)
|
M.set_highlights = function(opts)
|
||||||
|
|
||||||
local highlight_groups = highlights.groups()
|
local highlight_groups = highlights.groups()
|
||||||
|
|
||||||
-- Set users highlight_group customisations.
|
-- 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
|
for group, highlight in pairs(opts.highlight_groups) do
|
||||||
highlight_groups[group] = highlight
|
highlight_groups[group] = highlight
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user