Skip to content

Commit

Permalink
Merge branch 'topic/pretty-printer-base16'
Browse files Browse the repository at this point in the history
  • Loading branch information
bb010g committed Jan 13, 2025
2 parents 79004a3 + e901f3e commit 3a0624f
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 @@ -99,11 +99,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 3a0624f

Please sign in to comment.