Skip to content

Commit

Permalink
stylua lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pwntester committed Nov 13, 2023
1 parent cc3f0a0 commit 5d6bed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lua/octo/ui/bubbles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ local function make_bubble(content, highlight_group, opts)
if delimiter_color then
local delimiter_highlight_group = colors.create_highlight(delimiter_color, { mode = "foreground" })
return {
{ left_delimiter, delimiter_highlight_group },
{ body, highlight_group },
{ left_delimiter, delimiter_highlight_group },
{ body, highlight_group },
{ right_delimiter, delimiter_highlight_group },
}
else
return {
{ left_delimiter, highlight_group },
{ body, highlight_group },
{ left_delimiter, highlight_group },
{ body, highlight_group },
{ right_delimiter, highlight_group },
}
end
Expand Down
2 changes: 1 addition & 1 deletion lua/octo/ui/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ local function color_is_bright(r, g, b)
-- Counting the perceptive luminance - human eye favors green color
local luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255
if luminance > 0.5 then
return true -- Bright colors, black font
return true -- Bright colors, black font
else
return false -- Dark colors, white font
end
Expand Down

0 comments on commit 5d6bed6

Please sign in to comment.