truemedian / luvit-api-design

11 stars 2 forks source link

Add `pretty_print` module #6

Closed RiskoZoSlovenska closed 2 years ago

RiskoZoSlovenska commented 2 years ago

Changes from current Luvit 2.x implementation:

  1. dump() now takes a depth integer instead of a recurse boolean
  2. Swapped order of arguments to colorize()
  3. Renamed the theme field to current_theme
  4. Exposed the themes table as a field
  5. Renamed loadColors() to setTheme()
  6. setTheme() can now take a theme table for custom themes

As was discussed on Discord, the module could also use a different name, suggestions for which are welcome.