Skip to content

Commit

Permalink
base16-friendly pretty-printing colors
Browse files Browse the repository at this point in the history
  • Loading branch information
bb010g committed Jan 13, 2025
1 parent c90674b commit e901f3e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pretty-printer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ function PrettyPrint:_dedent()
end
end

-- base16 colors: https://github.com/tinted-theming/home/blob/main/styling.md
local colors = {
"\27[38;5;226m",
"\27[38;5;255m",
"\27[38;5;135m",
"\27[38;2;40;40;40m",
"\27[38;5;1m", -- base08
-- "\27[38;5;16m", -- base09
"\27[38;5;3m", -- base0A
"\27[38;5;2m", -- base0B
"\27[38;5;6m", -- base0C
"\27[38;5;4m", -- base0D
"\27[38;5;5m", -- base0E
-- "\27[38;5;17m", -- base0F
}

function PrettyPrint:_color()
Expand Down

0 comments on commit e901f3e

Please sign in to comment.