Skip to content

Commit

Permalink
fix: allow highlights without style
Browse files Browse the repository at this point in the history
The issue shouldn't be possible, but there seems to be some optimization
going on that sometimes removes empty tables.
  • Loading branch information
ramojus committed Jun 20, 2024
1 parent b77332a commit 44ef2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mellifluous/utils/highlighter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end

function M.apply_all()
for name, attributes in pairs(highlights) do
for style_name, val in pairs(attributes.style) do
for style_name, val in pairs(attributes.style or {}) do
attributes[style_name] = val
end
attributes.style = nil
Expand Down

0 comments on commit 44ef2da

Please sign in to comment.