Merge pull request #7 from trevorwhitney/fix-custom-hl-groups
Fix custom hl groups
This commit is contained in:
commit
975654bce6
@ -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